-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (37 loc) · 1.07 KB
/
cd-publish-beta.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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 }}