Skip to content

Commit

Permalink
Fix release process, again (#1188)
Browse files Browse the repository at this point in the history
* Update test-deploy.yml

* Update release.yml
  • Loading branch information
0x2b3bfa0 committed Sep 28, 2022
1 parent fd2b758 commit c1bc4f5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,7 @@ jobs:
${{ github.head_ref }})
env:
GITHUB_TOKEN: ${{ secrets.ADMIN_GITHUB_TOKEN }}
package:
needs: release
secrets: inherit
uses: ./.github/workflows/test-deploy.yml
11 changes: 5 additions & 6 deletions .github/workflows/test-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
name: Test & Deploy
on:
schedule:
- cron: '0 8 * * 1' # M H d m w (Mondays at 8:00)
release:
types: [created]
pull_request_target:
workflow_dispatch:
workflow_call:
schedule:
- cron: '0 8 * * 1' # M H d m w (Mondays at 8:00)
jobs:
authorize:
environment:
Expand Down Expand Up @@ -99,7 +98,7 @@ jobs:
registry-url: https://registry.npmjs.org
- run: npm install
- run:
npm ${{ github.event_name == 'release' && 'publish' || 'publish
npm ${{ github.event_name == 'workflow_call' && 'publish' || 'publish
--dry-run' }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand All @@ -121,7 +120,7 @@ jobs:
cp build/cml-linux{-x64,}
cp build/cml-macos{-x64,}
- uses: softprops/action-gh-release@v1
if: github.event_name == 'release'
if: github.event_name == 'workflow_call'
with:
files: |
build/cml-alpine-arm64
Expand Down

0 comments on commit c1bc4f5

Please sign in to comment.