Skip to content

v1.0.0-rc.23

v1.0.0-rc.23 #11

Workflow file for this run

name: Publish to NPM
on:
release:
types: [created]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
publish-npm:
runs-on: ubuntu-latest
strategy:
matrix:
package:
- authorization-agent
- application
- data-model
- utils
- api-messages
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 20.x
registry-url: https://registry.npmjs.org/
- name: Modify .npmrc
run: echo '//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}' >> .npmrc
- name: Install pnpm
uses: pnpm/action-setup@v2
- run: pnpm install
- run: pnpx turbo run build
- name: Create release
working-directory: ./packages/${{ matrix.package }}
run: pnpm publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.DEPLOYMENT_AUTH_TOKEN_NPM }}