Skip to content

Commit

Permalink
chore: added npm publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmarban committed Jan 6, 2024
1 parent a7ebe4e commit 5358d03
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish
on:
release:
types:
- published

jobs:
npm-publish:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 21
registry-url: "https://registry.npmjs.org"

- name: Install Dependencies
run: npm ci

- name: Publish to npm registry
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
14 changes: 14 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.github
.nyc_output
coverage
examples
node_modules
test
.dockerignore
.editorconfig
.eslintrc
.gitignore
.nycrc.yaml
.pre-commit-config.yaml
.prettierrc
Dockerfile

0 comments on commit 5358d03

Please sign in to comment.