Skip to content

1.0.0-beta.38

1.0.0-beta.38 #257

Workflow file for this run

name: Publish Package to npmjs
on:
release:
types: [created]
permissions:
contents: read
id-token: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
registry-url: https://registry.npmjs.org
- run: npm install -g npm@^11
- run: npm ci
- run: npm run build
- name: publish to npm
run: |
VERSION=$(node -p "require('./package.json').version")
echo "publishing version: $VERSION"
if [[ "$VERSION" == *"-beta."* ]]; then
npm publish --tag beta --access=public
elif [[ "$VERSION" == *"-rc."* ]]; then
npm publish --tag rc --access=public
else
npm publish --access=public
fi