@@ -15,23 +15,49 @@ jobs:
1515 - name : Checkout repository
1616 uses : actions/checkout@v4
1717
18- - uses : actions/setup-node@v4
18+ - name : Set up Node.js
19+ uses : actions/setup-node@v4
1920 with :
2021 node-version : 18
2122 registry-url : https://registry.npmjs.org/
2223
24+ - name : Install PNPM
25+ uses : pnpm/action-setup@v4
26+ with :
27+ version : 9
28+ run_install : false
29+
30+ - name : Enable Corepack
31+ run : corepack enable
32+
33+ - name : Get PNPM store directory
34+ shell : bash
35+ run : |
36+ echo "STORE_PATH=$HOME/.local/share/pnpm/store" >> $GITHUB_ENV
37+
38+ - name : Setup PNPM cache
39+ uses : actions/cache@v4
40+ with :
41+ path : ${{ env.STORE_PATH }}
42+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
43+ restore-keys : |
44+ ${{ runner.os }}-pnpm-store-
45+
2346 - name : Extract tag
2447 id : get_tag
25- run : echo ::set-output name=TAG::${GITHUB_REF#refs/tags/}
26- env :
27- GITHUB_REF : ${{ github.ref }}
48+ run : echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
49+
50+ - name : Install dependencies
51+ run : pnpm install --no-frozen-lockfile
2852
29- - run : ./scripts/publish.sh ${{ steps.get_tag.outputs.TAG }}
53+ - name : Run publish script
54+ run : ./scripts/publish.sh ${{ steps.get_tag.outputs.TAG }}
3055 env :
3156 NODE_AUTH_TOKEN : ${{ secrets.npm_token }}
3257
33- - uses : softprops/action-gh-release@v1
58+ - name : Upload release assets
59+ uses : softprops/action-gh-release@v1
3460 with :
3561 files : |
3662 dist/bundle.js
37- dist/bundle.min.js
63+ dist/bundle.min.js
0 commit comments