File tree 1 file changed +55
-0
lines changed
1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish Skeleton (next)
2
+ on :
3
+ push :
4
+ branches :
5
+ - next
6
+
7
+ concurrency : ${{ github.workflow }}-${{ github.ref }}
8
+
9
+ jobs :
10
+ release :
11
+ name : Build & Publish @next Release
12
+ if : github.repository == 'skeletonlabs/skeleton'
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - name : Checkout Repo
16
+ uses : actions/checkout@v3
17
+ with :
18
+ fetch-depth : 0
19
+
20
+ - name : Use PNPM v8
21
+ uses : pnpm/action-setup@v2
22
+ with :
23
+ version : 8
24
+
25
+ - name : Use Node v18
26
+ uses : actions/setup-node@v3
27
+ with :
28
+ node-version : 18
29
+
30
+ # PNPM Store cache setup
31
+ - name : Get pnpm store directory
32
+ id : pnpm-cache
33
+ run : |
34
+ echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
35
+ - name : Setup pnpm cache
36
+ uses : actions/cache@v3
37
+ with :
38
+ path : ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
39
+ key : ${{ runner.os }}-pnpm-store-next-${{ hashFiles('**/pnpm-lock.yaml') }}
40
+ restore-keys : |
41
+ ${{ runner.os }}-pnpm-store-next-
42
+
43
+ - name : Install dependencies
44
+ run : pnpm install
45
+
46
+ - name : Create Release Pull Request or Publish
47
+ id : changesets
48
+ uses : changesets/action@v1
49
+ with :
50
+ commit : " chore(next-release): version package"
51
+ title : " chore(next-release): version package"
52
+ publish : pnpm ci:release
53
+ env :
54
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
55
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments