Skip to content

Commit

Permalink
Add npm publish
Browse files Browse the repository at this point in the history
  • Loading branch information
rokbar-nosto committed Dec 13, 2023
1 parent 0b3771f commit 3e4d68d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/npm_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: npm_publish
on:
release:
types: [published]

jobs:
publish:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm init --scope=nosto -y

- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPMJS_TOKEN }}
access: "public"
dry-run: false
check-version: true
6 changes: 2 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,15 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'

- run: npm ci

- run: npm run build

- run: npm run test

# release:
Expand Down Expand Up @@ -46,4 +44,4 @@ jobs:
# with:
# extra_plugins: |
# @semantic-release/changelog
# @semantic-release/git
# @semantic-release/git

0 comments on commit 3e4d68d

Please sign in to comment.