Skip to content

Commit

Permalink
Merge pull request #10 from halitsever/dev
Browse files Browse the repository at this point in the history
feat: create npm workflow for automated releases
  • Loading branch information
halitsever authored Oct 16, 2024
2 parents e68bf1e + 7393f51 commit eaf1354
Show file tree
Hide file tree
Showing 3 changed files with 1,576 additions and 402 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish to NPM
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies and test 🧪
run: npm ci && npm run test
- name: Publish package on NPM 📦
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading

0 comments on commit eaf1354

Please sign in to comment.