Merge pull request #1132 from paypal/develop #86
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
name: Release | |
on: | |
# allow for manual triggers | |
workflow_dispatch: {} | |
push: | |
branches: | |
- release | |
jobs: | |
core: | |
uses: paypal/paypal-messaging-components/.github/workflows/core.yml@release | |
compareSnapshots: | |
uses: paypal/paypal-messaging-components/.github/workflows/snapshotCompare.yml@release | |
release: | |
name: Release | |
needs: [core, compareSnapshots] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
# pulls all commits (needed for semantic release to correctly version) | |
fetch-depth: '0' | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
- name: 📥 Download deps | |
uses: bahmutov/npm-install@v1 | |
with: | |
useLockFile: false | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: npx semantic-release@18 |