Skip to content

Commit d3d4746

Browse files
tayeCI
authored andcommitted
chore: update github workflows
1 parent 23e1129 commit d3d4746

File tree

3 files changed

+48
-41
lines changed

3 files changed

+48
-41
lines changed

.github/workflows/publish.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
- next
6+
7+
jobs:
8+
test:
9+
uses: ./.github/workflows/test.yml
10+
11+
publish-npm:
12+
name: '📦 Build and Publish 🚀'
13+
needs: [test]
14+
runs-on: ubuntu-latest
15+
environment: production
16+
steps:
17+
- uses: actions/checkout@v3
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version-file: '.nvmrc'
21+
registry-url: https://registry.npmjs.org/
22+
cache: yarn
23+
- name: ⚙ bootstrap
24+
run: 'npm run bootstrap && git fetch --tags'
25+
- name: 📦 build and publish 🚀
26+
run: npx _release
27+
env:
28+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

.github/workflows/test.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
on:
2+
pull_request:
3+
workflow_dispatch:
4+
workflow_call:
5+
6+
jobs:
7+
test:
8+
name: '🧪 Test'
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: ianwalter/playwright-container@43940dfa7d309fe3569b9df407ae9e84dcbf2e7f
13+
- name: ⚙ bootstrap
14+
run: 'npm run bootstrap && npx _check_deps && npx _add_plugin_indexes'
15+
- name: 📐 types
16+
run: npx tsc -b -f
17+
- name: 🔍 lint
18+
run: npx _lint
19+
- name: 🧪 tests
20+
run: npm test

.github/workflows/workflow.yml

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

0 commit comments

Comments
 (0)