ci: update GitHub Actions workflow to use ACTIONS_PAT for GITHUB_TOKE… #7
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
| # Generic workflow to lint, test, build and publish an npm package | |
| name: Test, Build and Publish npm package | |
| on: | |
| push: | |
| branches: main | |
| jobs: | |
| lint-test-build: | |
| name: Validate | |
| uses: ./.github/workflows/on-call-lint-test-build.yml | |
| secrets: inherit | |
| with: | |
| shouldUploadArtifact: true | |
| release: | |
| name: Publish to NPM 🚀 | |
| runs-on: ubuntu-latest | |
| needs: lint-test-build | |
| permissions: | |
| id-token: write | |
| contents: write | |
| steps: | |
| - name: Semantic Release | |
| uses: cloudbeds/webpack-module-federation-types-plugin/.github/actions/semantic-release@main | |
| with: | |
| publishToNpm: true | |
| GITHUB_TOKEN: ${{ secrets.ACTIONS_PAT }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |