chore(release-pkg): release packages #3268
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
# Workflow syntax for GitHub Actions | |
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions | |
# Context and expression syntax for GitHub Actions | |
# https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions | |
name: Version Check | |
on: [pull_request] | |
jobs: | |
version-check: | |
if: ${{ github.head_ref != '__release-pkg' }} | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
node-version: [16.14] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # https://yarnpkg.com/features/release-workflow/#commit-history | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
cache: "yarn" | |
node-version: ${{ matrix.node-version }} | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
# run: echo "::set-output name=dir::$(yarn config get cacheFolder)" | |
run: mkdir -p /home/runner/.yarn/berry/cache | |
continue-on-error: true | |
- uses: actions/cache@v3 | |
id: yarn-and-maven-cache # use this to check for `cache-hit` (`steps.yarn-and-maven-cache.outputs.cache-hit != 'true'`) | |
with: | |
path: | | |
~/.m2/repository | |
${{ steps.yarn-cache-dir-path.outputs.dir }} | |
./.shadow-cljs | |
key: ${{ runner.os }}-yarn-and-maven-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('./shadow-cljs.edn') }}-${{ hashFiles('./deps.edn') }} | |
restore-keys: | | |
${{ runner.os }}-yarn-and-maven- | |
- run: yarn version check |