Skip to content

Commit 7ca0925

Browse files
committed
ci: fix ci
1 parent 05d6567 commit 7ca0925

File tree

2 files changed

+25
-21
lines changed

2 files changed

+25
-21
lines changed

.github/workflows/release.yml

+22-20
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,38 @@
11
name: Release
22

3-
on: [workflow_dispatch]
3+
on: [ workflow_dispatch ]
44

55
concurrency: ${{ github.workflow }}-${{ github.ref }}
66

7+
env:
8+
CI: true
9+
PNPM_CACHE_FOLDER: .pnpm-store
10+
711
jobs:
8-
release:
9-
name: Release
12+
version:
13+
timeout-minutes: 15
1014
runs-on: ubuntu-latest
1115
steps:
12-
- name: Checkout Repo
13-
uses: actions/checkout@v2
16+
- name: checkout code repository
17+
uses: actions/checkout@v3
1418
with:
1519
fetch-depth: 0
16-
17-
- uses: pnpm/action-setup@v2.2.2
20+
- name: setup node.js
21+
uses: actions/setup-node@v3
1822
with:
19-
version: 7
20-
21-
- name: Use Node.js ${{ matrix.node-version }}
22-
uses: actions/setup-node@v2
23-
with:
24-
node-version: ${{ matrix.node-version }}
25-
cache: 'pnpm'
26-
- name: Install dependencies
23+
node-version: 14
24+
- name: install pnpm
25+
run: npm i pnpm@latest -g
26+
- name: Setup npmrc
27+
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
28+
- name: setup pnpm config
29+
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
30+
- name: install dependencies
2731
run: pnpm install
28-
29-
- name: Publish to npm
30-
id: changesets
32+
- name: create and publish versions
3133
uses: changesets/action@v1
3234
with:
33-
publish: pnpm ci:release
35+
version: pnpm ci:version
36+
publish: pnpm ci:publish
3437
env:
3538
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
"changeset": "changeset",
3333
"version-packages": "changeset version && pnpm i",
3434
"build-test": "pnpm build && pnpm test && pnpm typecheck --filter=!./playgrounds/*",
35-
"release": "pnpm run build-test && changeset publish"
35+
"release": "changeset publish",
36+
"ci:publish": "changeset publish",
37+
"ci:version": "changeset version"
3638
},
3739
"keywords": [
3840
"solidjs",

0 commit comments

Comments
 (0)