Skip to content

🏷️ Publish NPM Beta #1

🏷️ Publish NPM Beta

🏷️ Publish NPM Beta #1

name: 🏷️ Publish NPM Beta
on: workflow_dispatch
permissions:
contents: write
id-token: write
jobs:
deploy-npm-beta:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_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.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_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:beta