Skip to content

Commit

Permalink
publish on release
Browse files Browse the repository at this point in the history
  • Loading branch information
jfhenon committed Aug 14, 2022
1 parent 43bf939 commit 6b68b0c
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 57 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: manage npm release

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
- run: |
npm ci
npm run build --workspace=packages/svgcanvas
npm run lint
npm run test
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}


2 changes: 1 addition & 1 deletion .github/workflows/onpush.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Node CI
name: check each push

on: [push]

Expand Down
45 changes: 0 additions & 45 deletions archive/gh-disabled-workflows/npmpublish.yml

This file was deleted.

17 changes: 8 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
]
},
"dependencies": {
"@svgedit/svgcanvas": "7.1.5",
"@svgedit/svgcanvas": "7.1.6",
"browser-fs-access": "0.31.0",
"core-js": "3.24.1",
"elix": "15.0.1",
Expand Down Expand Up @@ -124,7 +124,7 @@
"remark-cli": "11.0.0",
"remark-lint-ordered-list-marker-value": "3.1.1",
"rimraf": "3.0.2",
"rollup": "2.77.2",
"rollup": "2.78.0",
"rollup-plugin-copy": "3.4.0",
"rollup-plugin-filesize": "9.1.2",
"rollup-plugin-html": "0.2.1",
Expand Down

0 comments on commit 6b68b0c

Please sign in to comment.