fix: scripts and CI/CD
This commit is contained in:
21
.github/workflows/release.yml
vendored
21
.github/workflows/release.yml
vendored
@@ -46,17 +46,28 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
version: nix develop .#full --command pnpm run version
|
version: nix develop .#full --command pnpm run version
|
||||||
publish: nix develop .#full --command pnpm run release
|
publish: nix develop .#full --command pnpm run release
|
||||||
|
commit: 'feat(release): version UTRP'
|
||||||
|
title: 'feat(release): version UTRP'
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Get UTRP Version and Tag
|
||||||
|
if: steps.changesets.outputs.hasChangesets == 'false'
|
||||||
|
id: version
|
||||||
|
run: |
|
||||||
|
VERSION=$(nix develop --command node -p "require('./package.json').version")
|
||||||
|
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||||
|
echo "tag=v$VERSION" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Create GitHub Release with Assets
|
- name: Create GitHub Release with Assets
|
||||||
if: steps.changesets.outputs.published == 'true'
|
if: steps.changesets.outputs.hasChangesets == 'false'
|
||||||
uses: softprops/action-gh-release@v5
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
tag_name: v${{ steps.changesets.outputs.publishedPackages[0].version }}
|
tag_name: ${{ steps.version.outputs.tag }}
|
||||||
name: Release v${{ steps.changesets.outputs.publishedPackages[0].version }}
|
name: Release ${{ steps.version.outputs.tag }}
|
||||||
files: |
|
files: |
|
||||||
packages/*.zip
|
package/ut-registration-plus-${{ steps.version.outputs.version }}.zip
|
||||||
|
generate_release_notes: true
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
"zip:to-publish": "SENTRY_ENV='production' pnpm zip",
|
"zip:to-publish": "SENTRY_ENV='production' pnpm zip",
|
||||||
"changeset": "changeset",
|
"changeset": "changeset",
|
||||||
"version": "changeset version && pnpm run generate-changelog",
|
"version": "changeset version && pnpm run generate-changelog",
|
||||||
"release": "pnpm run zip-to-publish && changeset tag",
|
"release": "pnpm run zip:to-publish && changeset tag",
|
||||||
"prettier": "prettier src --check",
|
"prettier": "prettier src --check",
|
||||||
"prettier:fix": "prettier src --write",
|
"prettier:fix": "prettier src --write",
|
||||||
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives",
|
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives",
|
||||||
|
|||||||
Reference in New Issue
Block a user