Changed automation from GitHub to Forgejo + some small improvements
Some checks failed
Publish to Private NPM Registry / publish (push) Failing after 1m24s
Some checks failed
Publish to Private NPM Registry / publish (push) Failing after 1m24s
This commit is contained in:
parent
6ab565449a
commit
56be45cc94
1 changed files with 12 additions and 8 deletions
|
|
@ -7,17 +7,13 @@ on:
|
|||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: default
|
||||
|
||||
steps:
|
||||
# Checkout the repository
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
# Set up NPM Auth Token
|
||||
- name: Set up NPM Auth Token
|
||||
run: echo "NODE_AUTH_TOKEN=${{ secrets.NPM_TOKEN }}" >> $GITHUB_ENV
|
||||
|
||||
# Set up NPM Auth Token
|
||||
- name: Set up NPM Auth Token
|
||||
run: echo "NODE_AUTH_TOKEN=${{ secrets.NPM_TOKEN }}" >> $GITHUB_ENV
|
||||
|
|
@ -77,10 +73,18 @@ jobs:
|
|||
- name: Commit Version Change (if needed)
|
||||
if: steps.version_check.outputs.version_changed == 'true'
|
||||
run: |
|
||||
git config user.name "GitHub Actions"
|
||||
git config user.email "actions@github.com"
|
||||
# Update remote URL to use the GITHUB_TOKEN for authentication
|
||||
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@git.bridgemanaccessible.ca/${{ github.repository }}.git
|
||||
|
||||
# Setup git user details for committing the version change
|
||||
git config user.name "Forgejo Actions"
|
||||
git config user.email "actions@git.bridgemanaccessible.ca"
|
||||
|
||||
# Commit the version change to the `package.json` file
|
||||
git add package.json
|
||||
git commit -m "[Github Actions] Update version to ${{ env.new_version }}"
|
||||
git commit -m "[Forgejo Actions] Update version to ${{ env.new_version }}"
|
||||
|
||||
# Push the changes to the repository
|
||||
git push origin HEAD:main
|
||||
|
||||
# Publish to private NPM registry
|
||||
Loading…
Add table
Add a link
Reference in a new issue