pure-parse@1.0.2 #19
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 | |
| on: | |
| release: | |
| types: [published] | |
| permissions: | |
| id-token: write | |
| contents: read | |
| jobs: | |
| publish-npm: | |
| name: Publish NPM | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup node | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 22 | |
| cache: 'npm' | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Install | |
| run: npm install --frozen-lockfile | |
| - name: Build | |
| run: npm run build --workspace=pure-parse | |
| - name: Copy README into the workspace | |
| run: | | |
| cp README.md packages/pure-parse/ | |
| cp LICENSE packages/pure-parse/ | |
| - name: Publish to NPM | |
| run: npm publish --access public --provenance --workspace=pure-parse | |
| env: | |
| NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |