We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad40529 commit 07a3c38Copy full SHA for 07a3c38
2 files changed
.github/workflows/publish.yml
@@ -3,6 +3,7 @@ on:
3
push:
4
tags:
5
- v1.*
6
+ - v2.*
7
jobs:
8
build:
9
runs-on: ubuntu-latest
@@ -18,6 +19,13 @@ jobs:
18
19
- run: yarn install --immutable
20
- run: yarn build
21
- run: npm pack
- - 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
30
env:
31
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@povio/openapi-codegen-cli",
- "version": "1.2.12",
+ "version": "2.0.0-rc.0",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"bin": {
0 commit comments