generated from wayfair-incubator/oss-template
-
Notifications
You must be signed in to change notification settings - Fork 18
36 lines (30 loc) · 918 Bytes
/
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
name: Snapshot
on: workflow_dispatch
jobs:
publish:
name: Publish snapshot version
runs-on: ubuntu-latest
env:
CI: true
steps:
- name: Checkout Repo
uses: actions/checkout@main
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- uses: pnpm/action-setup@master
- name: Set up Node.js
uses: actions/setup-node@main
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
- name: Install Dependencies
run: pnpm i --frozen-lockfile
- name: Publish
uses: seek-oss/changesets-snapshot@v0
with:
pre-publish: pnpm prepare-release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}