-
Notifications
You must be signed in to change notification settings - Fork 13
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
1 parent
e7d1eda
commit d2ed03a
Showing
1 changed file
with
41 additions
and
3 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 |
---|---|---|
|
@@ -28,12 +28,50 @@ jobs: | |
CYPRESS_INSTALL_BINARY: 0 | ||
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 | ||
run: pnpm install --frozen-lockfile | ||
- name: Publish release | ||
|
||
- name: Bump versions for proper release | ||
if: ${{ !github.event.release.prerelease }} | ||
run: npm run release:version ${{ github.event.release.name }} -- --yes | ||
|
||
- name: Run release:changelog script for proper release | ||
if: ${{ !github.event.release.prerelease }} | ||
run: npm run release:changelog | ||
|
||
- name: Configure Git | ||
if: ${{ !github.event.release.prerelease }} | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "SDP Deploy" | ||
git fetch origin ${{ github.event.release.target_commitish }} | ||
git checkout ${{ github.event.release.target_commitish }} | ||
- name: Commit changes | ||
if: ${{ !github.event.release.prerelease }} | ||
run: | | ||
git add . | ||
git commit -m "chore: release ${{ github.event.release.name }}" | ||
- name: Push changes | ||
if: ${{ !github.event.release.prerelease }} | ||
run: | | ||
git push origin ${{ github.event.release.target_commitish }} # Pushes back to target branch | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Publish draft release as alpha | ||
if: ${{ github.event.release.prerelease }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
pnpm config set access public | ||
pnpm release:publish-alpha --yes | ||
- name: Publish proper release | ||
if: ${{ !github.event.release.prerelease }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "SDP Deploy" | ||
pnpm config set access public | ||
pnpm run release:publish --yes |