Skip to content

v5.1.1

v5.1.1 #12

Workflow file for this run

name: Release
on:
release:
types: [released]
jobs:
publish:
runs-on: ubuntu-latest
environment: Production
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: .parcel-cache
key: ${{ runner.os }}-node${{ matrix.node }}-parcel
- uses: actions/setup-node@v3
with:
registry-url: https://registry.npmjs.org/
node-version: 18
cache: npm
- run: npm ci
- run: npm publish
if: ${{ !github.event.release.prerelease }}
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- run: npm publish --tag next
if: ${{ github.event.release.prerelease }}
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}