Skip to content

Commit

Permalink
Merge pull request #75 from ibm-cloud-security/development
Browse files Browse the repository at this point in the history
Add dry publish job
  • Loading branch information
vladimiratanasov committed Jan 25, 2022
2 parents 23cb7bc + 00f0a9f commit aeaa640
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/dry-publish.js.yml
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 }}

0 comments on commit aeaa640

Please sign in to comment.