diff --git a/.github/workflows/test-and-release.yaml b/.github/workflows/test-and-release.yaml index 9dc99048..8eb9e1a9 100644 --- a/.github/workflows/test-and-release.yaml +++ b/.github/workflows/test-and-release.yaml @@ -104,9 +104,24 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + + - name: Set up Node.js 14 + uses: actions/setup-node@v1 with: node-version: "14.x" + + - name: Keep npm cache around to speed up installs + uses: actions/cache@v2 + with: + path: ~/.npm + key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }} + + - name: Install dependencies + run: npm ci --no-audit + + - name: Compile source + run: npx tsc + - name: Semantic release run: | npm i --no-save semantic-release