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,7 +7,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Checkout the repository
|
# Checkout the repository
|
||||||
|
|
@ -18,10 +18,6 @@ jobs:
|
||||||
- name: Set up NPM Auth Token
|
- name: Set up NPM Auth Token
|
||||||
run: echo "NODE_AUTH_TOKEN=${{ secrets.NPM_TOKEN }}" >> $GITHUB_ENV
|
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
|
# Set up Node.js
|
||||||
- name: Set up Node.js version
|
- name: Set up Node.js version
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
|
|
@ -77,10 +73,18 @@ jobs:
|
||||||
- name: Commit Version Change (if needed)
|
- name: Commit Version Change (if needed)
|
||||||
if: steps.version_check.outputs.version_changed == 'true'
|
if: steps.version_check.outputs.version_changed == 'true'
|
||||||
run: |
|
run: |
|
||||||
git config user.name "GitHub Actions"
|
# Update remote URL to use the GITHUB_TOKEN for authentication
|
||||||
git config user.email "actions@github.com"
|
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 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
|
git push origin HEAD:main
|
||||||
|
|
||||||
# Publish to private NPM registry
|
# Publish to private NPM registry
|
||||||
Loading…
Add table
Add a link
Reference in a new issue