Merge pull request #110 from regulaforensics/fix/sp-17522-security #10
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 prerelease npm package | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
registry-url: https://registry.npmjs.org/ | |
- run: | | |
npm version $(npm info | grep next | sed 's/^.*: //') --no-git-tag-version --allow-same-version | |
- run: npm install | |
- run: npm run build | |
- run: npm version prerelease --no-git-tag-version --allow-same-version --preid beta | |
- run: npm publish --tag next | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}} |