Skip to content

v1.1.0

v1.1.0 #7

Workflow file for this run

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