File tree 2 files changed +787
-16
lines changed
2 files changed +787
-16
lines changed Original file line number Diff line number Diff line change 11
11
os : [ubuntu-latest, windows-latest, macOS-latest]
12
12
13
13
steps :
14
- - name : Checkout repo
14
+ - name : Checkout repository
15
15
uses : actions/checkout@v2
16
16
17
17
- name : Use Node ${{ matrix.node }}
30
30
31
31
- name : Build
32
32
run : yarn build
33
+
34
+ publish :
35
+ name : Generate changelog and publish to NPM
36
+
37
+ steps :
38
+ - name : Checkout repository
39
+ uses : actions/checkout@v2
40
+
41
+ - name : Configure node
42
+ uses : actions/setup-node@v1
43
+ with :
44
+ node-version : 14
45
+
46
+ - name : Install deps and build (with cache)
47
+ uses : bahmutov/npm-install@v1
48
+
49
+ - name : Generate changelog & tag commit
50
+ run : yarn release
51
+
52
+ - id : publish
53
+ uses : JS-DevTools/npm-publish@v1
54
+ with :
55
+ token : ${{ secrets.NPM_TOKEN }}
56
+ access : public
57
+
58
+ - uses : actions/checkout@v2
59
+ run : |
60
+ git config user.name github-actions
61
+ git config user.email 41898282+github-actions[bot]@users.noreply.github.com
62
+ git add .
63
+ git commit -m "chore(release): publish v${{ steps.publish.outputs.version }}"
64
+ git push --follow-tags
You can’t perform that action at this time.
0 commit comments