|
1 | | -# name: CI Release |
2 | | -# run-name: Release |
3 | | - |
4 | | -# on: |
5 | | -# push: |
6 | | -# branches: |
7 | | -# - main |
8 | | - |
9 | | -# jobs: |
10 | | -# package-release: |
11 | | -# name: Package Release |
12 | | -# runs-on: ubuntu-latest |
13 | | -# steps: |
14 | | -# - name: Checkout repository 🛎️ |
15 | | -# uses: actions/checkout@v4 |
16 | | -# with: |
17 | | -# fetch-depth: 0 |
18 | | - |
19 | | -# - name: Build 🏗️ |
20 | | -# uses: ./.github/actions/build |
21 | | - |
22 | | -# - name: Create .npmrc 📝 |
23 | | -# run: | |
24 | | -# echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc |
25 | | -# echo "git-checks=false" >> .npmrc |
26 | | - |
27 | | -# - name: Bump version 📝 |
28 | | -# run: pnpm bump-version |
29 | | - |
30 | | -# - name: Publish to registry 🚀 |
31 | | -# run: pnpm release |
32 | | - |
33 | | -# - name: Sync release info 📝 |
34 | | -# id: sync_release |
35 | | -# run: | |
36 | | -# tag=v$(node -e "console.log(require('./package.json').version)") |
37 | | -# git config --global user.email "github-actions[bot]@users.noreply.github.com" |
38 | | -# git config --global user.name "github-actions[bot]" |
39 | | -# git config pull.ff true |
40 | | -# git add . && git commit -m "CI: @sliit-foss/automatic-versioning - sync release" || true |
41 | | -# git tag $tag || true |
42 | | -# git pull --rebase && git push origin |
43 | | -# echo "tag=$tag" >> $GITHUB_OUTPUT |
44 | | - |
45 | | -# - name: Create release on GitHub 📝 |
46 | | -# uses: ncipollo/release-action@v1 |
47 | | -# with: |
48 | | -# generateReleaseNotes: true |
49 | | -# skipIfReleaseExists: true |
50 | | -# makeLatest: true |
51 | | -# tag: ${{steps.sync_release.outputs.tag}} |
52 | | - |
53 | | -# site-release: |
54 | | -# name: Site Release |
55 | | -# runs-on: ubuntu-latest |
56 | | -# steps: |
57 | | -# - name: Checkout repository 🛎️ |
58 | | -# uses: actions/checkout@v4 |
59 | | - |
60 | | -# - name: Build 🏗️ |
61 | | -# uses: ./.github/actions/build |
62 | | -# with: |
63 | | -# storybooks: true |
64 | | - |
65 | | -# - name: Create .nojekyll file 🚧 |
66 | | -# run: touch ./storybook-static/.nojekyll |
67 | | - |
68 | | -# - name: Fix 404 on page reload 🚧 |
69 | | -# run: cp storybook-static/index.html storybook-static/404.html |
70 | | - |
71 | | -# - name: Deploy 🚀 |
72 | | -# uses: JamesIves/github-pages-deploy-action@v4 |
73 | | -# with: |
74 | | -# folder: ./storybook-static/ |
75 | | -# branch: gh-pages |
76 | | -# clean-exclude: preview |
| 1 | +name: CI/CD Release |
| 2 | +run-name: Release |
| 3 | + |
| 4 | +on: |
| 5 | + push: |
| 6 | + branches: |
| 7 | + - main |
| 8 | + |
| 9 | +jobs: |
| 10 | + package-release: |
| 11 | + name: Publish |
| 12 | + runs-on: ubuntu-latest |
| 13 | + steps: |
| 14 | + - name: Checkout repository 🛎️ |
| 15 | + uses: actions/checkout@v4 |
| 16 | + with: |
| 17 | + fetch-depth: 0 |
| 18 | + |
| 19 | + - name: Build 🏗️ |
| 20 | + uses: sliit-foss/actions/bun/build@main |
| 21 | + |
| 22 | + - name: Release 🚀 |
| 23 | + uses: sliit-foss/actions/bun/publish@main |
| 24 | + with: |
| 25 | + latest: true |
| 26 | + env: |
| 27 | + TAG: latest |
| 28 | + NPM_ACCESS_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }} |
0 commit comments