File tree Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Publish release
2+
3+ on :
4+ push :
5+ branches : [ release ]
6+
7+ jobs :
8+ publish :
9+ name : Publish
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Checkout the repository
13+ uses : actions/checkout@v3
14+ - uses : actions/setup-node@v3
15+ with :
16+ node-version : lts/*
17+ registry-url : https://registry.npmjs.org/
18+ - name : Install dependencies
19+ run : npm ci
20+ - name : Publish package to NPM
21+ run : npm publish
22+ env :
23+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
24+ - name : Build package to upload to GitHub releases
25+ run : |
26+ npm pack
27+ mv @acpr/rate-limit-postgresql-*.tgz @acpr/rate-limit-postgresql.tgz
28+ - name : Create a Github release
29+ uses : softprops/action-gh-release@v1
30+ with :
31+ files : @acpr/rate-limit-postgresql.tgz
32+ body :
33+ You can view the changelog
34+ [here](https://github.com/adrianprelipcean/express-rate-limit-postgresql/blob/master/changelog.md).
Original file line number Diff line number Diff line change 44 push :
55 branches : [ master ]
66 pull_request :
7- branches : [ master ]
7+ branches : [ master, release ]
88
99jobs :
1010 build :
You can’t perform that action at this time.
0 commit comments