Skip to content

Commit

Permalink
Add publish workflow (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamo88 committed Aug 26, 2023
1 parent 33f9410 commit 03b9be4
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Publish Package to npm
on:
release:
types: [published]
jobs:
install:
name: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install
lint:
name: lint
runs-on: ubuntu-latest
needs: install
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install
- run: npm run lint:all
test:
name: test
runs-on: ubuntu-latest
needs: install
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install
- run: echo test
build:
name: build
runs-on: ubuntu-latest
needs: install
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install
- run: npm run build
publish:
name: publish
runs-on: ubuntu-latest
needs: [install, lint, test, build]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 03b9be4

Please sign in to comment.