Skip to content

Merge pull request #100 from regulaforensics/400f04cb #3

Merge pull request #100 from regulaforensics/400f04cb

Merge pull request #100 from regulaforensics/400f04cb #3

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}}