Skip to content

Commit a05d45b

Browse files
committed
ci(semantic-release): enable semantic-release
1 parent f81231f commit a05d45b

File tree

2 files changed

+26
-23
lines changed

2 files changed

+26
-23
lines changed

.github/workflows/ci.yml

+22-22
Original file line numberDiff line numberDiff line change
@@ -31,25 +31,25 @@ jobs:
3131
- run: yarn
3232
- run: yarn test
3333
- run: yarn lint
34-
#deploy:
35-
# name: Deploy
36-
# runs-on: ubuntu-latest
37-
# needs: build-and-test
38-
# steps:
39-
# - name: Find yarn cache
40-
# id: find-yarn-cache
41-
# run: echo "::set-output name=dir::$(yarn cache dir)"
42-
# - name: git checkout
43-
# uses: actions/checkout@v3
44-
# - name: Cache yarn dependencies
45-
# uses: actions/cache@v3
46-
# with:
47-
# path: ${{steps.find-yarn-cache.outputs.dir}}
48-
# key: ${{runner.os}}-node${{env.DEPLOY_NODE_VERSION}}-yarn-${{hashFiles('**/yarn.lock')}}
49-
# restore-keys: ${{runner.os}}-node${{env.DEPLOY_NODE_VERSION}}-yarn-
50-
# - name: Set up Node.js
51-
# uses: actions/setup-node@v3
52-
# with:
53-
# node-version: ${{env.DEPLOY_NODE_VERSION}}
54-
# - run: yarn
55-
# - run: yarn semantic-release
34+
deploy:
35+
name: Deploy
36+
runs-on: ubuntu-latest
37+
needs: build-and-test
38+
steps:
39+
- name: Find yarn cache
40+
id: find-yarn-cache
41+
run: echo "::set-output name=dir::$(yarn cache dir)"
42+
- name: git checkout
43+
uses: actions/checkout@v3
44+
- name: Cache yarn dependencies
45+
uses: actions/cache@v3
46+
with:
47+
path: ${{steps.find-yarn-cache.outputs.dir}}
48+
key: ${{runner.os}}-node${{env.DEPLOY_NODE_VERSION}}-yarn-${{hashFiles('**/yarn.lock')}}
49+
restore-keys: ${{runner.os}}-node${{env.DEPLOY_NODE_VERSION}}-yarn-
50+
- name: Set up Node.js
51+
uses: actions/setup-node@v3
52+
with:
53+
node-version: ${{env.DEPLOY_NODE_VERSION}}
54+
- run: yarn
55+
- run: yarn semantic-release

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -139,5 +139,8 @@
139139
"release": {
140140
"extends": "@softwareventures/semantic-release-config"
141141
},
142-
"packageManager": "[email protected]"
142+
"packageManager": "[email protected]",
143+
"publishConfig": {
144+
"access": "public"
145+
}
143146
}

0 commit comments

Comments
 (0)