Skip to content

Commit

Permalink
chore: update release workflow (#8)
Browse files Browse the repository at this point in the history
* chore: update release job permissions

* chore: update release task

* chore: update actions/checkout action to v4

* chore: switch to carlito767/release-tag action (using node 16)

https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/

* chore: use commit-and-tag-version instead of standard-version

conventional-changelog/standard-version#907
  • Loading branch information
carlito767 committed Dec 14, 2023
1 parent 22dfa97 commit 48a58fa
Show file tree
Hide file tree
Showing 4 changed files with 116 additions and 71 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Expand Up @@ -7,13 +7,14 @@ on:

jobs:
release:
permissions: write-all
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Release
uses: yyx990803/release-tag@master
uses: carlito767/release-tag@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
7 changes: 2 additions & 5 deletions .vscode/tasks.json
Expand Up @@ -3,11 +3,8 @@
"tasks": [
{
"label": "🚀 Release",
"command": "pnpm",
"args": [
"run",
"release",
]
"type": "shell",
"command": "pnpm run release && git push --follow-tags origin main",
}
]
}
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -3,10 +3,10 @@
"version": "1.0.0-alpha.0",
"private": true,
"scripts": {
"release": "standard-version"
"release": "commit-and-tag-version"
},
"devDependencies": {
"@commitlint/config-conventional": "16.2.1",
"standard-version": "9.3.2"
"commit-and-tag-version": "12.0.0"
}
}
171 changes: 109 additions & 62 deletions pnpm-lock.yaml

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

0 comments on commit 48a58fa

Please sign in to comment.