File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed
Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Add Github Release Tag
2+
3+ on :
4+ push :
5+ tags :
6+ - v*.*.*
7+
8+ jobs :
9+ release :
10+ if : github.repository == 'reinerBa/vite-plugin-mock-simple'
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v4
15+ with :
16+ fetch-depth : 0
17+ # Setup .npmrc file to publish to npm
18+ - uses : actions/setup-node@v3
19+ with :
20+ node-version : ' 20.x'
21+ registry-url : ' https://registry.npmjs.org'
22+ - run : npm ci
23+ - run : npm run build
24+
25+ - name : restore example2
26+ working-directory : ./example2
27+ run : npm ci
28+
29+ - name : runtime and api test example2
30+ working-directory : ./example2
31+ run : npm run runtest
32+
33+ - run : npm pack
34+ - run : npm publish
35+ env :
36+ NODE_AUTH_TOKEN : ${{ secrets.NPM_ACCESS_TOKEN }}
37+
38+ - name : Build Changelog
39+ id : github_release
40+ uses : mikepenz/release-changelog-builder-action@v3
41+ env :
42+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
43+
44+ - name : Create Release
45+ uses : mikepenz/action-gh-release@v0.2.0-a03
46+ with :
47+ body : ${{steps.github_release.outputs.changelog}}
You can’t perform that action at this time.
0 commit comments