-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.26 KB
/
snapshot-version.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
48
49
50
51
name: Version Snapshots
on: workflow_dispatch
env:
CI: true
run-name: '[Snapshots]: Version for ${{ github.ref_name }}'
jobs:
snapshot-version:
name: Snapshot
runs-on: ubuntu-latest
steps:
- name: Checkout code repository
uses: actions/checkout@v4
with:
fetch-depth: 0
#ref: ${{ github.ref_name }}
- name: Install pnpm package manager
id: install-pnpm
uses: ./.github/actions/pnpm
with:
npm-token: ${{ secrets.NPM_TOKEN }}
- name: Install NodeJs
id: install-node
uses: ./.github/actions/node
- name: Build Packages
id: build-packages
uses: ./.github/actions/build
- name: Setup CI Git User
id: setup-ci-git-user
uses: ./.github/actions/npmrc
with:
github-token: ${{ secrets.GH_TOKEN }}
- name: Create Snapshot
uses: changesets/action@v1.4.5
with:
setupGitUser: false
version: pnpm snapshot:version
#publish: pnpm snapshot:publish
title: "chore(version): Snapshot Version"
commit: "chore(version): creating a snapshot version"
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.GH_TOKEN }}