Skip to content

Commit

Permalink
Adding github action
Browse files Browse the repository at this point in the history
  • Loading branch information
kirnberger1980 committed Aug 25, 2023
1 parent 22ca55e commit cc4c510
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "publish package to npm"

on:
push:
branches:
- main

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: node
uses: actions/setup-node@v2
with:
node-version: 18
registry-url: https://registry.npmjs.org
- name: publish
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

0 comments on commit cc4c510

Please sign in to comment.