Skip to content

Commit 6ef3d49

Browse files
committed
feat: add create release in CI
1 parent 762f398 commit 6ef3d49

File tree

4 files changed

+5
-25
lines changed

4 files changed

+5
-25
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ jobs:
2727
deploy:
2828
runs-on: ubuntu-latest
2929
needs: build
30-
if: github.ref == 'refs/heads/deploy'
30+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
31+
permissions:
32+
contents: write
3133
steps:
3234
- uses: actions/checkout@v4
3335
# Setup .npmrc file to publish to npm
@@ -39,6 +41,7 @@ jobs:
3941
with:
4042
name: dist
4143
path: dist
44+
- uses: ncipollo/release-action@v1
4245
- name: Publish package on NPM
4346
run: npm publish
4447
env:

.husky/pre-commit

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

package.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
77
"scripts": {
8-
"prepare": "husky install",
98
"build:wasm": "cd ./rust-core && wasm-pack build --release --out-dir ../src/pkg --no-pack --target web && rimraf ../src/pkg/.gitignore",
109
"build:lib": "cd ./src && tsc",
1110
"build": "node ./scripts/build.mjs",
1211
"test:build": "cd ./test-dependencies && tsc && webpack",
13-
"test": "pnpm run test:build && web-test-runner",
14-
"make-badges": "istanbul-badges-readme"
12+
"test": "pnpm run test:build && web-test-runner"
1513
},
1614
"keywords": [
1715
"zip",
@@ -36,8 +34,6 @@
3634
"chance": "^1.1.11",
3735
"cpy-cli": "^5.0.0",
3836
"html-webpack-plugin": "^5.5.3",
39-
"husky": "^8.0.3",
40-
"istanbul-badges-readme": "^1.8.5",
4137
"jszip": "^3.10.1",
4238
"playwright": "^1.39.0",
4339
"rimraf": "^5.0.5",

pnpm-lock.yaml

Lines changed: 0 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)