chore(main): release 1.9.1 (#644) #13
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 Please | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| release-please: | |
| name: 📦 Release Please | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Generate GitHub App Token | |
| id: app-token | |
| uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1 | |
| with: | |
| app-id: ${{ secrets.RELEASE_APP_ID }} | |
| private-key: ${{ secrets.RELEASE_APP_PEM }} | |
| - uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4.4.0 | |
| id: release | |
| with: | |
| token: ${{ steps.app-token.outputs.token }} | |
| # Node.js release type for package.json versioning | |
| release-type: node | |
| # Publish to npm when a release is created | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| if: ${{ steps.release.outputs.release_created }} | |
| - uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0 | |
| with: | |
| node-version-file: package.json | |
| registry-url: 'https://registry.npmjs.org/' | |
| if: ${{ steps.release.outputs.release_created }} | |
| # Skip post-install scripts here, as a malicious | |
| # script could steal NODE_AUTH_TOKEN. | |
| - name: Install dependencies | |
| run: npm ci --ignore-scripts | |
| env: | |
| CI: true | |
| NODE_AUTH_TOKEN: ${{ secrets.CI_NPM_READ_ORG }} | |
| if: ${{ steps.release.outputs.release_created }} | |
| # `npm rebuild` will run all those post-install scripts for us. | |
| - run: npm rebuild && npm run prepare --if-present | |
| if: ${{ steps.release.outputs.release_created }} | |
| - name: Publish to NPM Package Registry | |
| run: npm publish --access=public | |
| env: | |
| CI: true | |
| NODE_AUTH_TOKEN: ${{ secrets.CI_NPM_REGISTRY }} | |
| if: ${{ steps.release.outputs.release_created }} |