File tree Expand file tree Collapse file tree 8 files changed +103
-8351
lines changed Expand file tree Collapse file tree 8 files changed +103
-8351
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Publish
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' *'
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+ timeout-minutes : 10
12
+ steps :
13
+ - uses : actions/checkout@v3
14
+ - uses : actions/setup-node@v3
15
+ with :
16
+ node-version : ' 18.x'
17
+ registry-url : ' https://npm.pkg.github.com'
18
+ - name : Install
19
+ # Skip post-install to avoid malicious scripts stealing PAT
20
+ run : npm install --ignore-script
21
+ env :
22
+ # GITHUB_TOKEN can't access packages hosted in private repos,
23
+ # even within the same organisation
24
+ NODE_AUTH_TOKEN : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
25
+ - name : Post-install
26
+ run : npm rebuild && npm run prepare --if-present
27
+ - name : Build
28
+ run : npm run build
29
+ - name : Publish
30
+ run : npm publish
31
+ env :
32
+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
1
+ name : Test
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
8
+ branches :
9
+ - main
10
+
11
+ jobs :
12
+ build :
13
+ runs-on : ubuntu-latest
14
+ timeout-minutes : 10
15
+ steps :
16
+ - uses : actions/checkout@v3
17
+ with :
18
+ # Use PAT instead of default Github token, because the default
19
+ # token deliberately will not trigger another workflow run
20
+ token : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
21
+ - uses : actions/setup-node@v3
22
+ with :
23
+ node-version : ' 16.x'
24
+ registry-url : ' https://npm.pkg.github.com'
25
+ - name : Install
26
+ # Skip post-install to avoid malicious scripts stealing PAT
27
+ run : npm install --ignore-script
28
+ env :
29
+ # GITHUB_TOKEN can't access packages hosted in private repos,
30
+ # even within the same organisation
31
+ NODE_AUTH_TOKEN : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
32
+ - name : Post-install
33
+ run : npm rebuild && npm run prepare --if-present
34
+ - name : Lint
35
+ run : npm run lint
36
+ - name : Test
37
+ run : npm test
38
+ - name : Tag
39
+ if : ${{ github.ref == 'refs/heads/main' }}
40
+ run : ./tag.sh
Original file line number Diff line number Diff line change 6
6
* .log
7
7
.DS_Store
8
8
node_modules
9
+ package-lock.json
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @reedsy/vuex" ,
3
- "version" : " 4.1.1 " ,
3
+ "version" : " 4.1.2 " ,
4
4
"description" : " state management for Vue.js" ,
5
5
"main" : " dist/vuex.cjs.js" ,
6
6
"exports" : {
74
74
"cross-env" : " ^7.0.3" ,
75
75
"css-loader" : " ^2.1.0" ,
76
76
"enquirer" : " ^2.3.6" ,
77
- "eslint" : " ^7.32.0" ,
77
+ "eslint" : " ^6.8.0" ,
78
+ "eslint-plugin-vue" : " ^9.17.0" ,
78
79
"eslint-plugin-vue-libs" : " ^4.0.0" ,
79
80
"execa" : " ^5.0.0" ,
80
81
"express" : " ^4.18.2" ,
81
82
"fs-extra" : " ^10.1.0" ,
82
83
"jest" : " ^29.2.0" ,
83
84
"jest-environment-jsdom" : " ^29.2.0" ,
84
- "puppeteer" : " ^ 19.0.0" ,
85
+ "puppeteer" : " = 19.0.0" ,
85
86
"regenerator-runtime" : " ^0.13.5" ,
86
87
"rollup" : " ^2.79.1" ,
87
88
"rollup-plugin-terser" : " ^7.0.2" ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ VERSION=$( node -p " require('./package.json').version" )
4
+
5
+ git config --local user.email
" [email protected] "
6
+ git config --local user.name " GitHub Action"
7
+ git fetch --tags
8
+
9
+ VERSION_COUNT=$( git tag --list $VERSION | wc -l)
10
+
11
+ if [ $VERSION_COUNT -gt 0 ]
12
+ then
13
+ echo " Version $VERSION already deployed."
14
+ exit 0
15
+ else
16
+ echo " Deploying version $VERSION "
17
+ fi
18
+
19
+ echo ' !/dist' >> .gitignore
20
+
21
+ git checkout -b release-$VERSION
22
+ git add .gitignore
23
+ git add --all dist/
24
+ git commit --message " Release version $VERSION "
25
+ git tag $VERSION
26
+ git push origin refs/tags/$VERSION
You canβt perform that action at this time.
0 commit comments