Skip to content

Commit 8ca324c

Browse files
committed
update
1 parent 22d45a2 commit 8ca324c

File tree

2 files changed

+28
-19
lines changed

2 files changed

+28
-19
lines changed

.github/workflows/deploy.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Deploy
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
lint:
7+
uses: ./.github/workflows/lint.yml
8+
publish:
9+
needs:
10+
- lint
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
# Setup .npmrc file to publish to npm
15+
- uses: actions/setup-node@v3
16+
with:
17+
node-version: '16.x'
18+
registry-url: 'https://registry.npmjs.org'
19+
- run: npm ci
20+
- run: npm run package
21+
- run: cd package && npm publish
22+
env:
23+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/main.yml

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,9 @@
1-
name: Lint main
1+
name: Push to main
22
on:
3-
release:
4-
types: [created]
3+
push:
4+
branches:
5+
- main
6+
- release/**
57
jobs:
68
lint:
79
uses: ./.github/workflows/lint.yml
8-
publish:
9-
needs:
10-
- lint
11-
runs-on: ubuntu-latest
12-
steps:
13-
- uses: actions/checkout@v3
14-
# Setup .npmrc file to publish to npm
15-
- uses: actions/setup-node@v3
16-
with:
17-
node-version: '16.x'
18-
registry-url: 'https://registry.npmjs.org'
19-
- run: npm ci
20-
- run: npm run package
21-
- run: cd package && npm publish
22-
env:
23-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)