Changed automation from GitHub to Forgejo + some small improvements
Some checks failed
Publish to Private NPM Registry / publish (push) Failing after 1m24s

This commit is contained in:
Alan Bridgeman 2025-06-18 05:03:17 -05:00
parent 6ab565449a
commit 56be45cc94

View file

@ -7,7 +7,7 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
runs-on: default
steps:
# Checkout the repository
@ -18,10 +18,6 @@ jobs:
- 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
# Set up Node.js
- name: Set up Node.js version
uses: actions/setup-node@v3
@ -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