From 083a48de2362dec95afccd389149c7687f22c7c6 Mon Sep 17 00:00:00 2001 From: Daniel Cassidy Date: Mon, 1 Apr 2024 15:21:02 +0100 Subject: [PATCH] chore(semantic-release): enable semantic-release --- .github/workflows/ci.yml | 44 ++++++++++++++++++++-------------------- package.json | 5 ++++- 2 files changed, 26 insertions(+), 23 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6c0072c..8960cb5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/package.json b/package.json index d0708b6..f030ec0 100644 --- a/package.json +++ b/package.json @@ -83,5 +83,8 @@ "release": { "extends": "@softwareventures/semantic-release-config" }, - "packageManager": "yarn@4.1.1" + "packageManager": "yarn@4.1.1", + "publishConfig": { + "access": "public" + } }