fix: update release workflow to install latest npm version before pub… #47
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: Release & publish on `package.json#version` bump | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| id-token: write # Required for OIDC | |
| contents: read | |
| jobs: | |
| publish-on-release: | |
| runs-on: ubuntu-latest | |
| permissions: write-all | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: ".nvmrc" | |
| registry-url: "https://registry.npmjs.org" | |
| cache: "yarn" | |
| - run: yarn install | |
| - run: yarn test | |
| - run: yarn build | |
| - run: npm install -g npm@latest | |
| - run: npm publish --provenance --access public | |
| - uses: Makepad-fr/auto-release-on-version-bump-action@0.0.2 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| name: "$newVersion" | |
| body: "✨ New release $newVersion" | |
| draft: "false" | |
| pre-release: "auto" | |
| generate-release-note: "true" | |
| tag-name: "$newVersion" |