Skip to content

feat(ci): create publish beta workflow #1

feat(ci): create publish beta workflow

feat(ci): create publish beta workflow #1

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 $VERSION
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
VERSION: ${{ steps.get_tag.outputs.TAG }}