checkout -> v5, minor tweaks to publish command #6
Workflow file for this run
This file contains hidden or 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 NPM Package | |
| on: | |
| push: | |
| tags: | |
| - '*' | |
| branches: | |
| - ci/fix-npm-trusted-publishing | |
| permissions: | |
| id-token: write | |
| contents: read | |
| jobs: | |
| package: | |
| runs-on: ubuntu-latest | |
| name: Publish NPM Package | |
| steps: | |
| - name: Cloning repo | |
| uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: .nvmrc | |
| registry-url: 'https://registry.npmjs.org' # required for trusted publishing | |
| - run: npm i | |
| - run: npm run deploy |