-
Notifications
You must be signed in to change notification settings - Fork 7
38 lines (37 loc) · 1.03 KB
/
release.yml
File metadata and controls
38 lines (37 loc) · 1.03 KB
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
name: "release"
on:
push:
branches:
- "master"
jobs:
publish:
runs-on: "ubuntu-22.04"
steps:
- uses: "actions/checkout@v3"
with:
fetch-depth: 0
- uses: "actions/setup-node@v3"
with:
node-version: 18
cache: "npm"
- name: "Cancel previous runs"
uses: "styfle/cancel-workflow-action@0.11.0"
continue-on-error: true
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- run: "npm ci --no-audit"
- run: "npm run build"
env:
DEFER_NO_LOCAL_SCHEDULER: 1
- name: "release / pull_request"
id: "changesets"
uses: "dotansimha/changesets-action@v1.5.2"
with:
publish: "npm run release"
version: "npx changeset version"
commit: 'Update defer client version'
title: "Upcoming Release Changes"
createGithubReleases: "aggregate"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}