diff --git a/.changeset/bumpy-rules-scream.md b/.changeset/bumpy-rules-scream.md new file mode 100644 index 0000000..6fd582c --- /dev/null +++ b/.changeset/bumpy-rules-scream.md @@ -0,0 +1,6 @@ +--- +'app': patch +'backend': patch +--- + +Initial release of the Backstage plugin for Kusion. diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 470d56f..df34a40 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,6 +22,25 @@ jobs: node-version: 20 registry-url: https://registry.npmjs.org/ # Needed for auth + - name: cache all node_modules + id: cache-modules + uses: actions/cache@v4 # v4 + with: + path: '**/node_modules' + key: ${{ runner.os }}-node_modules-${{ hashFiles('yarn.lock', '**/package.json') }} + - name: find location of global yarn cache + id: yarn-cache + if: steps.cache-modules.outputs.cache-hit != 'true' + run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT + - name: cache global yarn cache + uses: actions/cache@v4 # v4 + if: steps.cache-modules.outputs.cache-hit != 'true' + with: + path: ${{ steps.yarn-cache.outputs.dir }} + key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- + - name: Fetch previous commit for check run: git fetch origin '${{ github.event.before }}' @@ -61,6 +80,25 @@ jobs: with: node-version: 20 registry-url: https://registry.npmjs.org/ # Needed for auth + + - name: cache all node_modules + id: cache-modules + uses: actions/cache@v4 # v4 + with: + path: '**/node_modules' + key: ${{ runner.os }}-node_modules-${{ hashFiles('yarn.lock', '**/package.json') }} + - name: find location of global yarn cache + id: yarn-cache + if: steps.cache-modules.outputs.cache-hit != 'true' + run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT + - name: cache global yarn cache + uses: actions/cache@v4 # v4 + if: steps.cache-modules.outputs.cache-hit != 'true' + with: + path: ${{ steps.yarn-cache.outputs.dir }} + key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- - name: Install root dependencies run: yarn install --immutable