diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4387b56..53a9a8c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/package.json b/package.json index 68e89fb..80971d2 100644 --- a/package.json +++ b/package.json @@ -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", @@ -82,5 +81,8 @@ "release": { "extends": "@softwareventures/semantic-release-config" }, - "packageManager": "yarn@4.0.2" + "packageManager": "yarn@4.0.2", + "publishConfig": { + "access": "public" + } }