-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: try to set up the right token for git (#334)
- Loading branch information
Showing
2 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters