Skip to content

Commit 3923b6b

Browse files
mattstromMatt Strom
andauthored
fix: fix package build issue (#247)
Co-authored-by: Matt Strom <[email protected]>
1 parent f2fbcc8 commit 3923b6b

File tree

1 file changed

+8
-24
lines changed

1 file changed

+8
-24
lines changed

.github/workflows/on-push.yml

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ on:
77
tags-ignore:
88
- '[0-9].[0-9]+.[0-9]+'
99

10+
env:
11+
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
12+
NPM_TOKEN: '${{ secrets.NPM_TOKEN }}'
13+
14+
permissions:
15+
contents: write
16+
1017
jobs:
1118
build:
1219
name: Build
@@ -45,30 +52,7 @@ jobs:
4552
run: |
4653
npm run build
4754
48-
release:
49-
name: Release
50-
if: github.ref == 'refs/heads/master'
51-
runs-on: ubuntu-latest
52-
needs:
53-
- build
54-
env:
55-
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
56-
NPM_TOKEN: '${{ secrets.NPM_TOKEN }}'
57-
permissions:
58-
contents: write
59-
steps:
60-
- name: Checkout Repo
61-
uses: actions/checkout@v2
62-
63-
- name: Setup Node
64-
uses: actions/setup-node@v1
65-
with:
66-
node-version: '16'
67-
68-
- name: Install Node Packages
69-
run: |
70-
npm ci --production=false
71-
7255
- name: Release
56+
if: github.ref == 'refs/heads/master'
7357
run: |
7458
npx semantic-release

0 commit comments

Comments
 (0)