Skip to content

Commit

Permalink
See if this will allow push to main protected branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
fr3nch13 committed Jul 20, 2023
1 parent b427c6f commit ec93934
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,22 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: '18.x'
- run: |
npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
- name: Initialise the NPM config
run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
- name: Initialize Git user
run: |
git config --global user.email "fr3nch13@gmail.com"
git config --global user.name "Release Workflow"
- name: Log git status
run: git status
- name: Push to protected branch
uses: CasperWA/push-protected@v2
with:
token: ${{ secrets.PUSH_TO_PROTECTED_BRANCH }}
branch: main
unprotect_reviews: true
- name: Run release
run: |
npm whoami
npm install
# See ROOt/.release-it.sh
Expand Down

0 comments on commit ec93934

Please sign in to comment.