Skip to content

Commit

Permalink
Setting up auto-publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
IDisposable committed Apr 16, 2023
1 parent fc3d3e5 commit 8ffa31e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,22 @@ jobs:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
node-version: '19.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish

- name: Install npm packages
run: npm ci

- name: Build
run: npm run build:ci

- name: Publish NPM package
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//npmjs.com/:_authToken=${NODE_AUTH_TOKEN}
@idisposable:registry=https://npmjs.com
always-auth=true

0 comments on commit 8ffa31e

Please sign in to comment.