This repository has been archived by the owner on Aug 21, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
35 additions
and
37 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 |
---|---|---|
|
@@ -45,41 +45,39 @@ jobs: | |
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
- name: Delete root package.json | ||
run: rm package.json | ||
- name: Install cross-env and ts-node | ||
run: npm install [email protected] [email protected] [email protected] [email protected] | ||
- name: Bump default and template project version | ||
run: node scripts/bump-project-versions.js | ||
- name: Run npm install | ||
run: npm install | ||
- name: Bump default and template project versions | ||
run: npm run bump-project-versions | ||
- name: Run git add | ||
run: git add . | ||
- name: Commit changes | ||
run: git commit -m ${{ github.event.release.tag_name }} | ||
- name: Push changes to new branch | ||
run: git push --no-verify origin ${{ env.pr_branch_name }} | ||
- name: Create version bump PR | ||
uses: repo-sync/pull-request@v2 | ||
with: | ||
destination_branch: ${{ github.event.release.target_commitish }} | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
source_branch: ${{ env.pr_branch_name }} | ||
pr_title: ${{ github.event.release.tag_name }} | ||
pr_body: Bump version to ${{ github.event.release.tag_name }} | ||
- name: Publish to npm | ||
run: npm run publish-no-verify | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- name: Update package repo to GitHub Packages | ||
run: npm run update-name-gh-package | ||
- name: Run git add | ||
run: git add . | ||
- name: Commit changes | ||
run: git commit -m 'GH Packages' | ||
- name: Config npm registry token | ||
run: npm config set '//npm.pkg.github.com/:_authToken' "${NPM_TOKEN}" | ||
env: | ||
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Publish to GitHub Packages | ||
run: npm run publish-github | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
# - name: Create version bump PR | ||
# uses: repo-sync/pull-request@v2 | ||
# with: | ||
# destination_branch: ${{ github.event.release.target_commitish }} | ||
# github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# source_branch: ${{ env.pr_branch_name }} | ||
# pr_title: ${{ github.event.release.tag_name }} | ||
# pr_body: Bump version to ${{ github.event.release.tag_name }} | ||
# - name: Publish to npm | ||
# run: npm run publish-no-verify | ||
# env: | ||
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
# - name: Update package repo to GitHub Packages | ||
# run: npm run update-name-gh-package | ||
# - name: Run git add | ||
# run: git add . | ||
# - name: Commit changes | ||
# run: git commit -m 'GH Packages' | ||
# - name: Config npm registry token | ||
# run: npm config set '//npm.pkg.github.com/:_authToken' "${NPM_TOKEN}" | ||
# env: | ||
# NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# - name: Publish to GitHub Packages | ||
# run: npm run publish-github | ||
# env: | ||
# NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} |
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
8 changes: 4 additions & 4 deletions
8
scripts/bump-project-versions.js β scripts/bump-project-versions.ts
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