-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (38 loc) · 1.05 KB
/
snapshot_release.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
name: publish snapshot version of npm packages
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
inputs:
ref:
description: The base branch to publish a snapshot release from
required: true
default: "develop"
tag:
description: Snapshot version name
required: false
default: ""
env:
FORCE_COLOR: "1"
# if no inputs it's considered as a cron job
REF: ${{ inputs.ref || 'develop' }}
TAG: ${{ inputs.tag || 'develop' }}
jobs:
snapshot:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ env.REF }}
- uses: ./.github/actions/setup-toolchain-composite
- name: install dependencies
run: pnpm install
- name: build libraries
run: pnpm build
- name: create and publish snapshot release version
run: |
pnpm bump --snapshot ${{ env.TAG }}
pnpm release --no-git-tag
env:
GITHUB_TOKEN: ${{ github.token }}
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}