Skip to content

Commit 5b09896

Browse files
committed
Import the package publish workflow and NPM ignore-list
1 parent f3f292b commit 5b09896

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
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+
name: Publish to NPM
2+
3+
on:
4+
release:
5+
types: [ published ]
6+
7+
jobs:
8+
deploy:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
16+
- name: Set up Node
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: 16.x
20+
registry-url: https://registry.npmjs.org/
21+
22+
- name: Install dependencies
23+
run: yarn && yarn install
24+
25+
- name: Build and publish
26+
env:
27+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
28+
run: yarn build && yarn publish

.npmignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
development
2+
scripts
3+
tests

0 commit comments

Comments
 (0)