Skip to content

Commit e5be8bd

Browse files
committed
fix(ci): move to semantic release
1 parent f2ed8bb commit e5be8bd

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

.github/workflows/npmpublish.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v1
12+
- uses: actions/checkout@v3
1313
- uses: actions/setup-node@v3
1414
with:
1515
node-version: 18
@@ -22,14 +22,19 @@ jobs:
2222
needs: build
2323
runs-on: ubuntu-latest
2424
steps:
25-
- uses: actions/checkout@v1
25+
- uses: actions/checkout@v3
2626
- uses: actions/setup-node@v3
2727
with:
2828
node-version: 18
2929
registry-url: https://registry.npmjs.org/
30-
- run: yarn install --immutable
31-
- run: yarn build
32-
- run: npm publish --access public
30+
- name: Install dependencies
31+
run: yarn install --immutable
32+
- name: Build
33+
run: yarn build
34+
- name: Release
3335
env:
34-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
38+
run: |
39+
yarn dlx semantic-release
3540

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openapi-typescript-infra/plop",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"description": "Project generator for @openapi-typescript-infra services",
55
"type": "module",
66
"exports": "./build/index.js",

0 commit comments

Comments
 (0)