Skip to content

Commit

Permalink
fix(release): update the release workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie-BitFlight committed Oct 4, 2023
1 parent c8726e3 commit 4f5b377
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create_github_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- 'v*.*.*'

jobs:
release:
github-release:
if: (!contains(github.event.head_commit.message, 'build(release)') && !contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci'))
name: Release GitHub Actions
runs-on: ubuntu-latest
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/create_npm_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ on:
- 'next'

jobs:
release:
if: (!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci') && !contains(github.event.head_commit.message, 'build(release)') && !contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci'))
npm-release:
if: (!contains(github.event.head_commit.message, 'build(release)') && !contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci'))
name: Release GitHub Actions
runs-on: ubuntu-latest
permissions:
Expand Down Expand Up @@ -96,11 +96,12 @@ jobs:
- name: Ship It
run: |
git add -f dist package.json && \
git commit --allow-empty -m "build(release): version $(jq -r '.version' package.json)"
yarn auto shipit -vv && \
git tag -a "v$(jq -r '.version' package.json)" -m "build(release): version $(jq -r '.version' package.json)"
yarn postversion:manual
set -e
yarn auto shipit -vv
git add -f dist package.json
git commit --allow-empty -m "build(release): version $(jq -r '.version' package.json)"
git tag -a "v$(jq -r '.version' package.json)"
yarn postversion:manual
# - name: Bump Package Version
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
"postversion:manual": "git push --tags origin && git push origin",
"pre-commit": "yarn build;lint-staged",
"prepare": "[ -n ${GITHUB_ACTIONS:-} ] || husky install",
"release:script": "./release.sh",
"release:post": "yarn npm publish --access public --tag v${npm_package_version} --tag latest",
"test": "NODE_ENV=testing jest --runInBand",
"test-ci": "NODE_ENV=testing jest --ci --reporters=default --reporters=jest-junit",
Expand Down

0 comments on commit 4f5b377

Please sign in to comment.