Skip to content

Commit

Permalink
build: enable semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
djcsdy committed Jan 26, 2024
1 parent 2eb6d7b commit 8eae405
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 24 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@v3
# - name: Cache yarn dependencies
# uses: actions/cache@v3
# 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@v3
# 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@v3
- name: Cache yarn dependencies
uses: actions/cache@v3
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@v3
with:
node-version: ${{env.DEPLOY_NODE_VERSION}}
- run: yarn
- run: yarn semantic-release
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"private": true,
"name": "@softwareventures/format-time",
"version": "0.0.0-development",
"description": "Convert @softwareventures/time to a string in a variety of formats",
Expand Down Expand Up @@ -82,5 +81,8 @@
"release": {
"extends": "@softwareventures/semantic-release-config"
},
"packageManager": "yarn@4.0.2"
"packageManager": "yarn@4.0.2",
"publishConfig": {
"access": "public"
}
}

0 comments on commit 8eae405

Please sign in to comment.