v2.0.0 #1
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 Release | |
on: | |
release: | |
types: [published] | |
jobs: | |
publish-github-packages: | |
name: Publish on registry | |
runs-on: ubuntu-latest | |
if: success() && !contains(github.ref, 'beta') | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Get tag | |
id: get_tag | |
run: echo ::set-output name=TAG::${GITHUB_REF#refs/tags/} | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 9.1.2 | |
- name: Setup node env 🏗 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: lts/hydrogen | |
registry-url: https://registry.npmjs.org/ | |
cache: "pnpm" | |
- name: Install dependencies 👨🏻💻 | |
run: pnpm i --frozen-lockfile | |
- name: Build | |
run: pnpm build | |
- name: Publish | |
run: pnpm -r --filter './packages/**' publish --no-git-checks --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
VERSION: ${{ steps.get_tag.outputs.TAG }} |