This repository was archived by the owner on May 16, 2026. It is now read-only.
Disable npm lifecycle scripts for security #20
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: CI | |
| on: | |
| push: | |
| branches: | |
| - '**' # matches every branch | |
| - '!main' # excludes main | |
| jobs: | |
| build: | |
| name: Build & Publish Next | |
| runs-on: ubuntu-latest | |
| env: | |
| NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@v2.0.0 | |
| - run: | | |
| echo "//registry.yarnpkg.com/:_authToken=$NPM_TOKEN" >>~/.npmrc | |
| yarn install | |
| yarn build | |
| yarn publish --tag next --new-version $(cat package.json | jq -r .version)-$(date +%s) --non-interactive --no-git-tag-version |