Skip to content

Commit db73acf

Browse files
committed
chore: add github action
1 parent f94dc34 commit db73acf

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/main.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Changesets
2+
on:
3+
push:
4+
branches:
5+
- main
6+
env:
7+
CI: true
8+
PNPM_CACHE_FOLDER: .pnpm-store
9+
jobs:
10+
version:
11+
timeout-minutes: 15
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout Repo
15+
uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0
18+
- name: Setup Node.js 16.x
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: 16.x
22+
- name: Install pnpm
23+
run: npm i pnpm@latest -g
24+
- name: Setup npmrc
25+
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
26+
- name: Setup pnpm config
27+
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
28+
- name: Install dependencies
29+
run: pnpm install --no-frozen-lockfile
30+
- name: Create and publish versions
31+
uses: changesets/action@v1
32+
with:
33+
version: pnpm version-packages
34+
commit: "chore: update versions"
35+
title: "chore: update versions"
36+
publish: pnpm release
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)