Skip to content

Commit

Permalink
ci(semantic-release): enable deploy using semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
djcsdy committed Jan 24, 2022
1 parent c54663f commit 40d6764
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 22 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: yarn
- run: yarn test
- run: 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@v2
# - name: Cache yarn dependencies
# uses: actions/cache@v1
# 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@v1
# with:
# node-version: ${{env.DEPLOY_NODE_VERSION}}
# - run: yarn
# - run: 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@v2
- name: Cache yarn dependencies
uses: actions/cache@v1
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@v1
with:
node-version: ${{env.DEPLOY_NODE_VERSION}}
- run: yarn
- run: yarn semantic-release
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,8 @@
},
"release": {
"extends": "@softwareventures/semantic-release-config"
},
"publishConfig": {
"access": "public"
}
}

0 comments on commit 40d6764

Please sign in to comment.