Skip to content

Commit 67f132e

Browse files
committed
split workflows
1 parent 7e81fda commit 67f132e

3 files changed

Lines changed: 65 additions & 57 deletions

File tree

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Continuous Integration
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- '**.md'
7+
8+
jobs:
9+
ci:
10+
name: Build and run tests
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: 20
18+
19+
- uses: pnpm/action-setup@v4
20+
with:
21+
run_install: true
22+
env:
23+
NPM_TOKEN: xxx
24+
25+
- uses: browser-actions/setup-chrome@v1
26+
with:
27+
chrome-version: stable
28+
29+
- name: Run all tests
30+
run: xvfb-run pnpm run ci
31+
env:
32+
NPM_TOKEN: xxx
33+

.github/workflows/deploy.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Deployment
2+
3+
on:
4+
push:
5+
branches: ['main']
6+
7+
jobs:
8+
deploy:
9+
name: Publish all NPM Packages
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: 20
17+
always-auth: true
18+
registry-url: https://registry.npmjs.org
19+
scope: '@spearwolf'
20+
21+
- uses: pnpm/action-setup@v4
22+
with:
23+
run_install: true
24+
env:
25+
NPM_TOKEN: xxx
26+
27+
- run: pnpm run publishNpmPkg
28+
name: Publish packages
29+
env:
30+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
31+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
32+

.github/workflows/main.yml

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)