-
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (29 loc) · 747 Bytes
/
release.yml
File metadata and controls
29 lines (29 loc) · 747 Bytes
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
name: Release
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
container:
image: node:16-buster
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v2
with:
# This makes Actions fetch all Git history so that Changesets can
# generate changelogs with the correct commits.
fetch-depth: 0
- name: Install
run: yarn
- name: Build
run: yarn build
- name: Changesets
uses: changesets/action@21240c3cd1d2efa2672d64e0235a03cf139b83e6
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
with:
publish: npx changeset publish