Skip to content

Commit

Permalink
Release on matching tag push to main (facebook#3284)
Browse files Browse the repository at this point in the history
* Release on matching tag push to main

* only run mon-fri
  • Loading branch information
acywatson authored Oct 28, 2022
1 parent b162fe9 commit 693402b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nightly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Nightly Release Branch
on:
schedule:
# Run daily at 2:30am UTC
- cron: '30 2 * * *'
- cron: '30 2 * * 1-5'
jobs:
release:
runs-on: ubuntu-latest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ name: Publish to NPM
on:
push:
branches:
- next
- latest
- main
tags:
- 'v**-next.**'

jobs:
release:
runs-on: ubuntu-latest
Expand All @@ -16,6 +18,6 @@ jobs:
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm run prepare-release
- run: node ./scripts/npm/release.js --non-interactive --dry-run=${{ secrets.RELEASE_DRY_RUN }} --channel $GITHUB_REF_NAME
- run: node ./scripts/npm/release.js --non-interactive --dry-run=${{ secrets.RELEASE_DRY_RUN }} --channel next
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 693402b

Please sign in to comment.