v1.1.0 #7
Workflow file for this run
This file contains 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 Package | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout repository | |
- name: Checkout | |
uses: actions/checkout@v3 | |
# Setup Node & pnpm | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 'latest' | |
cache: pnpm | |
# Publish Release Candidate | |
- name: pnpm publish release candidate | |
if: ${{ contains(github.ref_name, '-rc') }} | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: | | |
pnpm config set "//registry.npmjs.org/:_authToken" "${NPM_TOKEN}" | |
pnpm publish --no-git-checks --tag next | |
# Publish Release | |
- name: pnpm publish release | |
if: ${{ ! contains(github.ref_name, '-rc') }} | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: | | |
pnpm config set "//registry.npmjs.org/:_authToken" "${NPM_TOKEN}" | |
pnpm publish --no-git-checks |