Release from Prerelease #2
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 from Prerelease" | |
| on: workflow_dispatch | |
| permissions: | |
| contents: write | |
| id-token: write | |
| jobs: | |
| deploy-npm-latest-from-pre: | |
| runs-on: macos-14 | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ secrets.CAP_GH_RELEASE_TOKEN }} | |
| - name: 'Setup Tools' | |
| uses: ./.github/actions/setup-tools | |
| - name: "NPM Identity" | |
| run: | | |
| echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" >> ~/.npmrc | |
| npm whoami | |
| - name: "Git Config" | |
| run: | | |
| git config user.name "Github Workflow (on behalf of ${{ github.actor }})" | |
| git config user.email "users.noreply.github.com" | |
| - name: Version & Publish | |
| env: | |
| NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | |
| GH_TOKEN: ${{ secrets.CAP_GH_RELEASE_TOKEN }} | |
| run: | | |
| pnpm run ci:publish:latest-from-pre |