File tree 2 files changed +29
-1
lines changed
2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish Package
2
+
3
+ on :
4
+ release :
5
+ types : [created]
6
+
7
+ jobs :
8
+ publish :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v2
12
+ - uses : actions/setup-node@v2
13
+ with :
14
+ node-version : 16
15
+ registry-url : https://registry.npmjs.org/
16
+ - run : |
17
+ git config --global user.name "Inertia.js Publisher (BOT)"
18
+ git config --global user.email "[email protected] "
19
+ - run : npm install
20
+ - run : |
21
+ git tag -d ${{ github.event.release.tag_name }} || true
22
+ npm version ${{ github.event.release.tag_name }} -m "Tag @inertiajs/progress ${{ github.event.release.tag_name }}"
23
+ git push origin HEAD:master
24
+ git push --force origin refs/tags/${{ github.event.release.tag_name }}:refs/tags/${{ github.event.release.tag_name }}
25
+ - run : npm publish
26
+ env :
27
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 11
11
"unpkg" : " dist/index.umd.js" ,
12
12
"types" : " types.d.ts" ,
13
13
"scripts" : {
14
- "build" : " npm run build:cjs && npm run build:umd" ,
14
+ "build" : " npm run clean && npm run build:cjs && npm run build:umd" ,
15
15
"build:cjs" : " microbundle --format cjs" ,
16
16
"build:umd" : " microbundle --format umd --name Inertia --external none" ,
17
+ "clean" : " rm -rf dist" ,
17
18
"prepublishOnly" : " npm run build" ,
18
19
"watch" : " microbundle watch --format cjs"
19
20
},
You can’t perform that action at this time.
0 commit comments