Skip to content

feat(ci): fix npm tag name (just beta) #2

feat(ci): fix npm tag name (just beta)

feat(ci): fix npm tag name (just beta) #2

Workflow file for this run

name: Publish beta
on:
push:
tags:
- '*beta*'
jobs:
publish-github-packages:
name: Publish beta on registry
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Get tag
id: get_tag
run: echo ::set-output name=TAG::$(echo $GITHUB_REF | cut -d / -f 3)
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8.x.x
- 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 beta
run: pnpm -r --filter './packages/**' publish --no-git-checks --access public --tag beta
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
VERSION: ${{ steps.get_tag.outputs.TAG }}