Publish NPM RC #7
This file contains 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 RC | |
on: workflow_dispatch | |
permissions: | |
contents: write | |
id-token: write | |
jobs: | |
deploy-npm-rc: | |
runs-on: macos-15 | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.CAP_GH_RELEASE_TOKEN }} | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
registry-url: https://registry.npmjs.org/ | |
cache: npm | |
cache-dependency-path: '**/package.json' | |
- run: | | |
npm install | |
- name: Version & Publish | |
env: | |
GH_TOKEN: ${{ secrets.CAP_GH_RELEASE_TOKEN }} | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: | | |
git config user.name "Github Workflow (on behalf of ${{ github.actor }})" | |
git config user.email "users.noreply.github.com" | |
npm whoami | |
npm run ci:publish:rc |