Skip to content

Commit

Permalink
Fixes the CI/CD pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
joaocarmo committed Mar 28, 2022
1 parent 73dd09b commit 419195c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GH_PAT }}
ref: 'master'
ref: 'main'
- name: Use Node.js v16 (LTS)
uses: actions/setup-node@v2
with:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This workflow is automatically triggered on release/tag and will bump the
# version in the package.json
#
name: Release Version

on:
Expand All @@ -11,7 +14,7 @@ jobs:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GH_PAT }}
ref: 'master'
ref: 'main'
- name: Use Node.js v16 (LTS)
uses: actions/setup-node@v2
with:
Expand All @@ -22,7 +25,7 @@ jobs:
yarn --frozen-lockfile
- name: Get release
id: get_release
uses: bruceadams/get-release@v1
uses: bruceadams/get-release@v1.2.3
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
- name: Bump the version
Expand All @@ -36,7 +39,7 @@ jobs:
git commit -m "Release ${{ steps.get_release.outputs.tag_name }}" --no-gpg-sign --no-verify --signoff
git push
- name: Trigger the Publish Action
uses: benc-uk/workflow-dispatch@v1
uses: benc-uk/workflow-dispatch@v1.1
with:
workflow: Publish
token: ${{ secrets.GH_PAT }}

0 comments on commit 419195c

Please sign in to comment.