diff --git a/.github/workflows/nextVersion.yml b/.github/workflows/nextVersion.yml new file mode 100644 index 000000000..964ce5baa --- /dev/null +++ b/.github/workflows/nextVersion.yml @@ -0,0 +1,24 @@ +name: Publish Package to npmjs +permissions: + contents: write + id-token: write +on: + push: + branches: + - staging +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: 20 + registry-url: 'https://registry.npmjs.org' + - run: npm i + - run: npm run compile + - run: npm version prerelease --preid=rc --no-git-tag-version + - run: git push + - run: npm publish --provenance --access public --tag next + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}