diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2af9371..66ce077 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@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 diff --git a/package.json b/package.json index b45a955..e70320f 100644 --- a/package.json +++ b/package.json @@ -64,5 +64,8 @@ }, "release": { "extends": "@softwareventures/semantic-release-config" + }, + "publishConfig": { + "access": "public" } }