Skip to content

Commit 4617f68

Browse files
authored
Create .github/workflows/main.yml
1 parent fd2c8b2 commit 4617f68

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/main.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
jobs:
11+
release:
12+
name: Release
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout Repo
16+
uses: actions/checkout@v3
17+
18+
- uses: pnpm/action-setup@v2.2.4
19+
with:
20+
version: 7.29.3
21+
22+
- name: Setup Node.js 16.x
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: 16.x
26+
cache: pnpm
27+
28+
- name: Install Dependencies
29+
run: pnpm install --frozen-lockfile
30+
31+
- name: Create Release Pull Request or Publish
32+
id: changesets
33+
uses: changesets/action@v1
34+
with:
35+
# this expects you to have a script called release which does a build for your packages and calls changeset publish
36+
publish: pnpm release
37+
version: pnpm version-package
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)