-
-
Notifications
You must be signed in to change notification settings - Fork 34
32 lines (30 loc) · 941 Bytes
/
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
name: Beta
on:
push:
branches:
- '*'
- '!master'
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
registry-url: 'https://npm.pkg.github.com'
scope: '@farfetched'
node-version-file: '.nvmrc'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
shell: sh
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- run: pnpm changeset pre enter ${{ steps.extract_branch.outputs.branch }}
- run: pnpm changeset version
- run: pnpm changeset pre exit
- run: pnpm nx run-many --output-style=static --target=publish --all --configuration=beta
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}