-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.01 KB
/
snapshot.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: Snapshot Release
on:
push:
branches:
- snapshot
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Snapshot Release
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Creating .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Install Dependencies
run: |
corepack enable
pnpm install
- name: Build
run: |
pnpm build
cp README.md packages/scalawind/README.md
- name: Snapshot Release
run: |
pnpm release:snapshot
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}