Skip to content

Commit

Permalink
ci: try to set up the right token for git (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
IKatsuba authored Nov 29, 2023
1 parent ae22dcf commit 68b40b6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,26 +65,25 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ steps.generate_token.outputs.token }}
- name: Set up Git
run: |
git config user.name github-actions
git config user.email [email protected]
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: Set up Git
run: |
git config user.name "GitHub Bot"
git config user.email "[email protected]"
- name: Install dependencies
run: npm ci
- name: Execute version target on all affected packages and release them
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
# un-exclude packages when they're ready for public release
run: npx nx affected --base=latest --target=version --exclude=plugin-lighthouse,nx-plugin --parallel=1
- name: Push changes and tags
uses: ad-m/github-push-action@master
with:
github_token: ${{ steps.generate_token.outputs.token }}
branch: ${{ github.ref }}
force: true
tags: true
- name: Tag latest
shell: bash
run: |
git tag -f latest
git push origin latest --force
3 changes: 2 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"commitMessageFormat": "release({projectName}): {version} [skip ci]",
"tagPrefix": "{projectName}@",
"preset": "angular",
"postTargets": ["github"]
"postTargets": ["github"],
"push": true
}
},
"github": {
Expand Down

0 comments on commit 68b40b6

Please sign in to comment.