Skip to content

Commit 90ffd87

Browse files
authored
Merge pull request #12 from mvhenten/fix-publish
add npm publishing
2 parents bed1eb4 + a479f19 commit 90ffd87

File tree

5 files changed

+11783
-1352
lines changed

5 files changed

+11783
-1352
lines changed

.github/workflows/node.js.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,23 @@ jobs:
2727
cache: "npm"
2828
- run: npm ci
2929
- run: npm test
30+
publish-npm:
31+
needs: build
32+
runs-on: ubuntu-latest
33+
permissions:
34+
contents: write # to be able to publish a GitHub release
35+
issues: write # to be able to comment on released issues
36+
pull-requests: write # to be able to comment on released pull requests
37+
steps:
38+
- uses: actions/checkout@v4
39+
- name: Setup Node.js
40+
uses: actions/setup-node@v4
41+
with:
42+
node-version: "lts/*"
43+
- name: Install dependencies
44+
run: npm ci
45+
- name: Release
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
49+
run: npx semantic-release

.github/workflows/npm-publish.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ build/Release
2525
node_modules
2626
*komodoproject
2727
dist
28+
.DS_Store

0 commit comments

Comments
 (0)