Skip to content

Commit

Permalink
Automatically create GH release for each tag
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeschastny committed Oct 10, 2023
1 parent e949806 commit f7d6b52
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Create release

on:
push:
tags:
- 'v*'

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
with:
node-version: '20.x'
cache: 'npm'

- run: npm ci

- run: npm pack

- uses: ncipollo/release-action@v1
with:
artifacts: "cwebp-*.tgz"
generateReleaseNotes: true
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"clean": "rm -rf lib/ cwebp-*.tgz",
"test": "mocha test/*.coffee",
"list-files": "tar -tzf `npm pack | tail -n 1`",
"prepublish": "npm run clean && coffee -o lib/ -cb src/",
"prepack": "npm run clean && coffee -o lib/ -cb src/",
"postpublish": "git push origin +HEAD:latest --follow-tags"
},
"engines": {
Expand Down

0 comments on commit f7d6b52

Please sign in to comment.