Skip to content

Commit 8f6f7df

Browse files
Merge pull request #40 from qavajs/v2
v2 steps-api
2 parents 1205523 + 5945f28 commit 8f6f7df

17 files changed

+1585
-2041
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This workflow publishes a package to GitHub Packages
2+
# whenever a release is published, and it's tag starts with "2"
3+
# The pipeline is aimed on "v2" branch
4+
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
5+
6+
name: Node.js Package v2
7+
8+
on:
9+
release:
10+
types: [published]
11+
tags:
12+
- '2*'
13+
14+
jobs:
15+
publish-npm:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
ref: 'v2'
21+
- uses: actions/setup-node@v4
22+
with:
23+
node-version: 20
24+
registry-url: https://registry.npmjs.org/
25+
- run: npm ci
26+
- run: npm run build
27+
- run: npm publish --access public
28+
env:
29+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

.github/workflows/npm-publish.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
1-
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
1+
# This workflow publishes a package to GitHub Packages
2+
# whenever a release is published, and it's tag starts with "1"
3+
# The pipeline is aimed on "v1" branch
24
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
35

4-
name: Node.js Package
6+
name: Node.js Package v1
57

68
on:
79
release:
8-
types: [created]
10+
types: [published]
11+
tags:
12+
- '1*'
913

1014
jobs:
1115
publish-npm:
1216
runs-on: ubuntu-latest
1317
steps:
1418
- uses: actions/checkout@v4
19+
with:
20+
ref: 'v1'
1521
- uses: actions/setup-node@v4
1622
with:
17-
node-version: 22
23+
node-version: 20
1824
registry-url: https://registry.npmjs.org/
1925
- run: npm ci
2026
- run: npm run build

.github/workflows/pull-request.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
pull_request:
55
branches:
66
- main
7+
- v1
8+
- v2
79

810
jobs:
911
test:

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
99
:x: - deprecation
1010
:pencil: - chore
1111

12+
## [2.0.0]
13+
- :rocket: migrated on @qavajs/core v2
14+
1215
## [0.20.0]
1316
- :rocket: improved request and response reporting
1417

0 commit comments

Comments
 (0)