-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from ibm-cloud-security/development
Add dry publish job
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# The objective of the dry-run job is to get a preview of the pending release. | ||
# Dry-run mode skips the following steps: prepare, publish, success and fail. | ||
# In addition to this it prints the next version and release notes to the console. | ||
|
||
# Note: The Dry-run mode verifies the repository push permission, even though nothing will be pushed. | ||
# The verification is done to help user to figure out potential configuration issues. | ||
name: Dry Publish | ||
|
||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
dry-publish: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [12.x] | ||
if: ${{ github.ref == 'refs/heads/master' }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm install | ||
- run: npm run semantic-release --dry-run | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |