v1.0.0-rc.22 #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |