1.0.0-beta.38 #257
Workflow file for this run
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: 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 |