Skip to content

Commit

Permalink
ci: debug canary releases
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvxd committed Sep 22, 2023
1 parent 85b14d2 commit b8b43d4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/publish-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish canary release
on:
push:
branches:
- "main"
- "fix-canary-releases"

jobs:
tag-and-publish-to-npm:
Expand All @@ -11,7 +11,9 @@ jobs:
# Don't run on regular releases
if: "!startsWith(github.event.head_commit.message, 'release: ')"
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
fetch-tags: true

- name: Setup Node.js
uses: actions/setup-node@v1
Expand All @@ -23,11 +25,11 @@ jobs:
run: yarn

- name: Run release script
run: yarn release:canary
run: yarn release:info && yarn release:canary

- name: Publish all packages
run: ./scripts/publish.sh canary
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# - name: Publish all packages
# run: ./scripts/publish.sh canary
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

timeout-minutes: 10
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
"format:check": "prettier --check \"**/*.{ts,tsx,md}\"",
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"release": "yarn release:prepare && yarn changelog && yarn release-commit",
"release:info": "git fetch --tags && conventional-recommended-bump -p angular",
"release:prepare": "git fetch --tags && conventional-recommended-bump -p angular | xargs yarn version:auto $1",
"release:canary": "yarn release:prepare && node scripts/get-unstable-version canary | xargs yarn version:auto $1",
"release:canary:old": "yarn release:prepare && node scripts/get-unstable-version canary | xargs yarn version:auto $1",
"release-commit": "git add -u && git commit -m \"release: v${npm_package_version}\"",
"version": "lerna version --force-publish -y --no-push --no-changelog --no-git-tag-version $npm_package_version",
"version:auto": "yarn version --no-git-tag-version --new-version $1",
Expand Down

0 comments on commit b8b43d4

Please sign in to comment.