8000 feat: setup ci · podium-lib/node-http-proxy-fork@048f82c · GitHub
[go: up one dir, main page]

Skip to content

Commit 048f82c

Browse files
committed
feat: setup ci
1 parent 03ef10e commit 048f82c

File tree

2 files changed

+325
-282
lines changed

2 files changed

+325
-282
lines changed

.github/workflows/release.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Release on main
2+
3+
permissions:
4+
contents: write # to be able to publish a GitHub release
5+
issues: write # to be able to comment on released issues
6+
pull-requests: write # to be able to comment on released pull requests
7+
id-token: write # to enable use of OIDC for npm provenance
8+
9+
on:
10+
push:
11+
branches:
12+
- main
13+
- next
14+
15+
# Cancel previous workflows which might still be running
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
19+
20+
jobs:
21+
release:
22+
name: Release
23+
runs-on: [ubuntu-latest]
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
28+
- name: Install Node.js
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: 14
32+
33+
- name: Install dependencies
34+
run: npm install
35+
36+
- name: Run all tests
37+
run: npm test
38+
39+
- name: Release and publish
40+
run: npx semantic-release
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)
0