|
14 | 14 |
|
15 | 15 | permissions: |
16 | 16 | contents: write |
17 | | - packages: write |
18 | 17 |
|
19 | 18 | jobs: |
20 | 19 | release: |
21 | 20 | name: Release |
22 | | - runs-on: ubuntu-latest |
23 | | - |
24 | | - steps: |
25 | | - - name: Generate GitHub App token |
26 | | - id: app-token |
27 | | - uses: getsentry/action-github-app-token@v3 |
28 | | - with: |
29 | | - app_id: ${{ secrets.APP_ID }} |
30 | | - private_key: ${{ secrets.APP_PRIVATE_KEY }} |
31 | | - |
32 | | - - name: Checkout |
33 | | - uses: actions/checkout@v6 |
34 | | - |
35 | | - - name: Set up Node.js |
36 | | - uses: actions/setup-node@v6 |
37 | | - with: |
38 | | - node-version: 'lts/*' |
39 | | - cache: 'npm' |
40 | | - |
41 | | - - name: Install dependencies |
42 | | - run: npm ci |
43 | | - |
44 | | - - name: Bump version |
45 | | - run: npx lerna version --no-git-tag-version --yes ${{ inputs.bump }} |
46 | | - |
47 | | - - name: Extract version |
48 | | - id: extract-version |
49 | | - run: echo "VERSION=v$(jq -r .version ./lerna.json)" >> "$GITHUB_OUTPUT" |
50 | | - |
51 | | - - name: Format with Prettier |
52 | | - run: npx prettier --write . |
53 | | - |
54 | | - - name: Add changes |
55 | | - run: git add . |
56 | | - |
57 | | - - name: Commit |
58 | | - id: commit |
59 | | - uses: dsanders11/github-app-commit-action@v2 |
60 | | - with: |
61 | | - message: ${{ steps.extract-version.outputs.VERSION }} |
62 | | - token: ${{ steps.app-token.outputs.token }} |
63 | | - |
64 | | - - name: Reset and pull |
65 | | - run: git reset --hard && git pull |
66 | | - |
67 | | - - name: Tag |
68 | | - uses: actions/github-script@v9 |
69 | | - env: |
70 | | - GIT_TAG: ${{ steps.extract-version.outputs.VERSION }} |
71 | | - GIT_SHA: ${{ steps.commit.outputs.sha }} |
72 | | - with: |
73 | | - script: | |
74 | | - github.rest.git.createRef({ |
75 | | - owner: context.repo.owner, |
76 | | - repo: context.repo.repo, |
77 | | - ref: `refs/tags/${process.env.GIT_TAG}`, |
78 | | - sha: process.env.GIT_SHA |
79 | | - }) |
80 | | -
|
81 | | - - name: Release |
82 | | - uses: softprops/action-gh-release@v3 |
83 | | - with: |
84 | | - generate_release_notes: true |
85 | | - make_latest: true |
86 | | - tag_name: ${{ steps.extract-version.outputs.VERSION }} |
87 | | - token: ${{ steps.app-token.outputs.token }} |
| 21 | + uses: NixySoftware/.github/.github/workflows/release.yml@9704b92a2cefe90342562266d127a0c9dd132640 # v0.2.0 |
| 22 | + with: |
| 23 | + bump: ${{ inputs.bump }} |
| 24 | + bump-rust: false |
| 25 | + bump-typescript: true |
| 26 | + extract-version: 'typescript' |
| 27 | + secrets: |
| 28 | + app-client-id: ${{ secrets.APP_ID }} |
| 29 | + app-private-key: ${{ secrets.APP_PRIVATE_KEY }} |
0 commit comments