Skip to content

Commit

Permalink
feat: Add workflow to publish.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryohidaka committed Oct 6, 2023
1 parent 0bc92fd commit 59ce596
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on:
push:
branches: main

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
- name: Install dependencies
run: npm ci
- name: Build project
run: npm run build
- name: Publish to npm
uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}

0 comments on commit 59ce596

Please sign in to comment.