Use latest npm #40
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/use-latest-npm | |
| 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: '18.x' | |
| registry-url: 'https://registry.npmjs.org' | |
| # Ensure npm 11.5.1 or later for trusted publishing | |
| - run: npm install -g npm@latest | |
| - run: npm i | |
| - run: npm run deploy |