Skip to content

chore(deps): update actions/checkout action to v4 (#206) #82

chore(deps): update actions/checkout action to v4 (#206)

chore(deps): update actions/checkout action to v4 (#206) #82

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- uses: GoogleCloudPlatform/release-please-action@v2
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
- if: ${{ steps.release.outputs.release_created }}
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- if: ${{ steps.release.outputs.release_created }}
name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
- if: ${{ steps.release.outputs.release_created }}
name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- if: ${{ steps.release.outputs.release_created }}
uses: actions/cache@v1
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- if: ${{ steps.release.outputs.release_created }}
run: yarn install
- if: ${{ steps.release.outputs.release_created }}
run: yarn run build
- if: ${{ steps.release.outputs.release_created }}
run: yarn publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}