Skip to content

Commit 0bb1733

Browse files
committed
updaed workflows to use npm
1 parent d732667 commit 0bb1733

File tree

2 files changed

+21
-16
lines changed

2 files changed

+21
-16
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: CI
2+
23
on:
34
push:
45
branches:
@@ -9,13 +10,15 @@ jobs:
910
runs-on: ubuntu-latest
1011
steps:
1112
- uses: actions/checkout@v3
12-
- uses: pnpm/action-setup@v2
13-
with:
14-
version: 7
15-
- uses: actions/setup-node@v3
13+
14+
- name: Setup Node.js
15+
uses: actions/setup-node@v3
1616
with:
17-
node-version: 16.x
18-
cache: "pnpm"
17+
node-version: 18.x
18+
cache: "npm"
19+
20+
- name: Install Dependencies
21+
run: npm install --frozen-lockfile
1922

20-
- run: pnpm install --frozen-lockfile
21-
- run: pnpm run lint && pnpm run build
23+
- name: Lint and Build
24+
run: npm run lint && npm run build

.github/workflows/publish.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Publish
2+
23
on:
34
workflow_run:
45
workflows: [CI]
@@ -17,20 +18,21 @@ jobs:
1718
runs-on: ubuntu-latest
1819
steps:
1920
- uses: actions/checkout@v3
20-
- uses: pnpm/action-setup@v2
21-
with:
22-
version: 7
23-
- uses: actions/setup-node@v3
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v3
2424
with:
25-
node-version: 16.x
26-
cache: "pnpm"
25+
node-version: 18.x
26+
cache: "npm"
27+
28+
- name: Install Dependencies
29+
run: npm install --frozen-lockfile
2730

28-
- run: pnpm install --frozen-lockfile
2931
- name: Create Release Pull Request or Publish
3032
id: changesets
3133
uses: changesets/action@v1
3234
with:
33-
publish: pnpm run release
35+
publish: npm run release
3436
env:
3537
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3638
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)