Skip to content

Commit 756b36b

Browse files
committed
chore: update publish script
1 parent 77953a8 commit 756b36b

File tree

2 files changed

+40
-16
lines changed

2 files changed

+40
-16
lines changed

.github/workflows/build-and-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
run: pnpm lint
4444

4545
- name: Build Library 👷
46-
run: pnpm build --api="http://127.0.0.1:9080" --token="${{ secrets.TURBO_SERVER_TOKEN }}"
46+
run: pnpm build
4747

4848
- name: Run tests 🧪
4949
run: pnpm test

.github/workflows/publish.yml

Lines changed: 39 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,49 @@ env:
1111
jobs:
1212
version:
1313
timeout-minutes: 15
14-
runs-on: ubuntu-latest
14+
15+
runs-on: ${{ matrix.os }}
16+
17+
strategy:
18+
matrix:
19+
os: [ubuntu-latest]
20+
node: [14]
21+
1522
steps:
16-
- name: checkout code repository
17-
uses: actions/checkout@v2
23+
- name: Checkout 🛎
24+
uses: actions/checkout@master
25+
26+
- name: Setup node env 🏗
27+
uses: actions/setup-node@v3
1828
with:
19-
fetch-depth: 0
20-
- name: setup node.js
21-
uses: actions/setup-node@v2
29+
node-version: ${{ matrix.node }}
30+
check-latest: true
31+
32+
- uses: pnpm/[email protected]
33+
name: Install pnpm
2234
with:
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
35+
version: 7
36+
run_install: false
37+
38+
- name: Setup pnpm config 🏗
2939
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
30-
- name: install dependencies
31-
run: pnpm install
32-
- name: create and publish versions
40+
41+
- name: Setup npmrc 🏗
42+
run: echo "\n//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc
43+
44+
- name: Install dependencies 👨🏻‍💻
45+
run: pnpm install --no-frozen-lockfile
46+
47+
- name: Run linter 🧹
48+
run: pnpm lint
49+
50+
- name: Build Library 👷
51+
run: pnpm build
52+
53+
- name: Run tests 🧪
54+
run: pnpm test
55+
56+
- name: Bump versions 🏷 and Publish 🚀
3357
uses: changesets/action@v1
3458
with:
3559
version: pnpm ci:version

0 commit comments

Comments
 (0)