Skip to content

Commit f131e9a

Browse files
author
John Agan
committed
updated: GH Actions for publish to use yarn
1 parent 2ccf0b6 commit f131e9a

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed
File renamed without changes.

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,8 @@ name: Publish to NPM
33
on:
44
release:
55
types: [created]
6-
workflow_dispatch:
76

87
jobs:
9-
build:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- uses: actions/checkout@v3
13-
- uses: actions/setup-node@v3
14-
with:
15-
node-version: 16
16-
- run: npm install
17-
- run: npm test
18-
198
publish-npm:
209
needs: build
2110
runs-on: ubuntu-latest
@@ -25,7 +14,9 @@ jobs:
2514
with:
2615
node-version: 16
2716
registry-url: https://registry.npmjs.org/
28-
- run: npm install
29-
- run: npm publish
17+
- run: |
18+
yarn install
19+
yarn test
20+
yarn publish
3021
env:
3122
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)