|
7 | 7 |
|
8 | 8 | jobs: |
9 | 9 | npm: |
| 10 | + name: npm |
10 | 11 | runs-on: ubuntu-latest |
11 | 12 |
|
12 | 13 | steps: |
|
30 | 31 | node-modules- |
31 | 32 |
|
32 | 33 | - name: Install Dependencies |
33 | | - run: | |
34 | | - bun install |
35 | | - bun add -g logsmith |
| 34 | + run: bun install |
36 | 35 |
|
37 | 36 | - name: Publish to npm |
38 | 37 | run: ./scripts/publish.sh |
|
55 | 54 | packages/stx/bin/stx-darwin-arm64.zip |
56 | 55 | env: |
57 | 56 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
58 | | - |
59 | | - - name: Extract Version |
60 | | - id: version |
61 | | - run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT |
62 | | - |
63 | | - - name: Generate Release Changelog |
64 | | - run: | |
65 | | - # Generate changelog for this release only |
66 | | - PREVIOUS_TAG=$(git describe --tags --abbrev=0 HEAD~1 2>/dev/null || echo "") |
67 | | - if [ -n "$PREVIOUS_TAG" ]; then |
68 | | - logsmith --from "$PREVIOUS_TAG" --to "${{ steps.version.outputs.VERSION }}" \ |
69 | | - --theme github --format markdown --output RELEASE_NOTES.md |
70 | | - else |
71 | | - logsmith --to "${{ steps.version.outputs.VERSION }}" \ |
72 | | - --theme github --format markdown --output RELEASE_NOTES.md |
73 | | - fi |
74 | | -
|
75 | | - - name: Update Full Changelog |
76 | | - run: | |
77 | | - logsmith --theme github --output CHANGELOG.md |
78 | | - git config --local user.email "action@github.com" |
79 | | - git config --local user.name "GitHub Action" |
80 | | - git add CHANGELOG.md |
81 | | - git commit -m "docs: update changelog for ${{ steps.version.outputs.VERSION }}" || exit 0 |
82 | | - git push origin HEAD:main |
83 | | -
|
84 | | - - name: Create GitHub Release |
85 | | - uses: actions/create-release@v1 |
86 | | - env: |
87 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
88 | | - with: |
89 | | - tag_name: ${{ steps.version.outputs.VERSION }} |
90 | | - release_name: Release ${{ steps.version.outputs.VERSION }} |
91 | | - body_path: RELEASE_NOTES.md |
92 | | - draft: false |
93 | | - prerelease: false |
0 commit comments