Skip to content

Commit 07a3c38

Browse files
chore: bump version & update workflow to publish v2 and release candidates
1 parent ad40529 commit 07a3c38

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
push:
44
tags:
55
- v1.*
6+
- v2.*
67
jobs:
78
build:
89
runs-on: ubuntu-latest
@@ -18,6 +19,13 @@ jobs:
1819
- run: yarn install --immutable
1920
- run: yarn build
2021
- run: npm pack
21-
- run: npm publish --access=public
22+
- name: Publish release
23+
if: "!contains(github.ref, '-rc.')"
24+
run: npm publish --access=public
25+
env:
26+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
27+
- name: Publish release candidate
28+
if: contains(github.ref, '-rc.')
29+
run: npm publish --access=public --tag next
2230
env:
2331
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@povio/openapi-codegen-cli",
3-
"version": "1.2.12",
3+
"version": "2.0.0-rc.0",
44
"main": "./dist/index.js",
55
"types": "./dist/index.d.ts",
66
"bin": {

0 commit comments

Comments
 (0)