Skip to content

Commit

Permalink
NPM publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
barbarbar338 committed Jan 23, 2024
1 parent c8dd483 commit 8e64dd5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Publish Package to NPM

on: [push]

jobs:
build:
name: "Build & Publish"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ node_modules
.gitignore
.npmignore
yarn.lock
.prettierignore
.prettierrc

0 comments on commit 8e64dd5

Please sign in to comment.