Skip to content

Commit 46bee7f

Browse files
authored
Merge pull request #80 from BeeInventor/chore/update-action
Chore/update action
2 parents 9ecdf2f + 4bd993c commit 46bee7f

2 files changed

Lines changed: 39 additions & 18 deletions

File tree

.github/workflows/build-storybook-demo.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,29 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
13-
- uses: actions/setup-node@v3
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v4
1417
with:
15-
node-version: '20'
16-
- uses: pnpm/action-setup@v4
18+
node-version: 24
19+
cache: 'pnpm'
20+
21+
- name: Setup pnpm
22+
uses: pnpm/action-setup@v4
1723
with:
18-
version: 9
19-
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
24+
version: latest
25+
run_install: false
26+
27+
- name: Install and Build Storybook
2028
run: |
2129
pnpm install --frozen-lockfile
2230
pnpm run build-storybook
2331
2432
- name: Deploy 🚀
2533
uses: JamesIves/github-pages-deploy-action@v4
2634
with:
27-
branch: gh-pages # The branch the action should deploy to.
28-
folder: docs # The folder the action should deploy.
35+
branch: gh-pages
36+
folder: docs
37+
clean: true

.github/workflows/release-package.yml

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,29 @@ jobs:
1111
packages: write
1212
contents: read
1313
steps:
14-
- uses: actions/checkout@v3
15-
- uses: actions/setup-node@v3
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
1619
with:
17-
node-version: 20
18-
registry-url: https://npm.pkg.github.com/
20+
node-version: 24
21+
registry-url: 'https://npm.pkg.github.com'
1922
scope: '@beeinventor'
20-
- uses: pnpm/action-setup@v4
23+
24+
- name: Setup pnpm
25+
uses: pnpm/action-setup@v4
2126
with:
22-
version: 9
23-
- run: pnpm i
24-
- run: pnpm build
25-
- run: npm publish
27+
version: latest
28+
run_install: false
29+
30+
- name: Install dependencies
31+
run: pnpm install --frozen-lockfile
32+
33+
- name: Build package
34+
run: pnpm build
35+
36+
- name: Publish to GitHub Package Registry
37+
run: npm publish --registry=https://npm.pkg.github.com
2638
env:
27-
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
39+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)