set envvar globally so all publish steps receive it #7
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: GitHub Packages | |
on: | |
push: | |
jobs: | |
publish: | |
permissions: | |
packages: write | |
name: publish to GitHub Packages | |
runs-on: ubuntu-latest | |
env: | |
NODE_AUTH_TOKEN: ${ github.token } | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
registry-url: 'https://npm.pkg.github.com' | |
- name: publish to GitHub Packages | |
run: npm publish | |
working-directory: clients/typescript-angular |