Skip to content

Commit

Permalink
chore(semantic-release): enable semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
djcsdy committed Apr 1, 2024
1 parent e4510c2 commit 083a48d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 23 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,25 @@ jobs:
- run: corepack yarn
- run: corepack yarn test
- run: corepack yarn lint
#deploy:
# name: Deploy
# runs-on: ubuntu-latest
# needs: build-and-test
# steps:
# - name: Find yarn cache
# id: find-yarn-cache
# run: echo "::set-output name=dir::$(yarn cache dir)"
# - name: git checkout
# uses: actions/checkout@v4
# - name: Cache yarn dependencies
# uses: actions/cache@v4
# with:
# path: ${{steps.find-yarn-cache.outputs.dir}}
# key: ${{runner.os}}-node${{env.DEPLOY_NODE_VERSION}}-yarn-${{hashFiles('**/yarn.lock')}}
# restore-keys: ${{runner.os}}-node${{env.DEPLOY_NODE_VERSION}}-yarn-
# - name: Set up Node.js
# uses: actions/setup-node@v4
# with:
# node-version: ${{env.DEPLOY_NODE_VERSION}}
# - run: corepack yarn
# - run: corepack yarn semantic-release
deploy:
name: Deploy
runs-on: ubuntu-latest
needs: build-and-test
steps:
- name: Find yarn cache
id: find-yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: git checkout
uses: actions/checkout@v4
- name: Cache yarn dependencies
uses: actions/cache@v4
with:
path: ${{steps.find-yarn-cache.outputs.dir}}
key: ${{runner.os}}-node${{env.DEPLOY_NODE_VERSION}}-yarn-${{hashFiles('**/yarn.lock')}}
restore-keys: ${{runner.os}}-node${{env.DEPLOY_NODE_VERSION}}-yarn-
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{env.DEPLOY_NODE_VERSION}}
- run: corepack yarn
- run: corepack yarn semantic-release
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,8 @@
"release": {
"extends": "@softwareventures/semantic-release-config"
},
"packageManager": "yarn@4.1.1"
"packageManager": "yarn@4.1.1",
"publishConfig": {
"access": "public"
}
}

0 comments on commit 083a48d

Please sign in to comment.