fix(ci): restore conventional-commits-parser entry in package-lock.json #21
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 Preview to npm | ||
| # Manual-dispatch only. Builds, tests, runs `release:prepare` to rewrite | ||
| # any local file: deps to semver ranges, publishes under the chosen | ||
| # dist-tag (default: `next`), then restores `package.json`. | ||
| # | ||
| # Usage from the GitHub UI: Actions -> Publish Preview to npm -> Run workflow. | ||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| tag: | ||
| description: 'npm dist-tag (default: next)' | ||
| required: false | ||
| default: 'next' | ||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
| jobs: | ||
| publish: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 20.19.0 | ||
| registry-url: 'https://registry.npmjs.org' | ||
| cache: 'npm' | ||
| - name: Install dependencies | ||
| run: npm ci | ||
| - name: Build | ||
| run: npm run build | ||
| - name: Test | ||
| run: npm test | ||
| - name: Prepare publish (rewrite file: deps to ranges) | ||
| run: npm run release:prepare | ||
| - name: Publish to npm | ||
| run: npm publish --tag ${{ inputs.tag }} --access public | ||
| env: | ||
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
| - name: Restore package.json | ||
| if: always() | ||
| run: npm run release:restore | ||