1
0
mirror of https://github.com/benjlevesque/short-sha.git synced 2025-12-07 02:07:50 +01:00

Yarn cache

This commit is contained in:
github-actions[bot]
2022-10-28 15:37:10 +02:00
parent 43cc5c879c
commit a0b7c597ae

View File

@@ -1,4 +1,4 @@
name: "build-test" name: "Release"
on: on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
@@ -14,15 +14,21 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
ref: ${{ github.ref_name }} ref: ${{ github.ref_name }}
- run: | - name: Set up Node.js
yarn uses: actions/setup-node@v3
yarn build with:
node-version: '16'
cache: 'yarn'
- name: Install project dependencies
run: yarn --prefer-offline
- name: Build
run: yarn build
- name: Commit & Push changes - name: Commit & Push changes
run: | run: |
git config user.name 'github-actions[bot]' git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com' git config user.email 'github-actions[bot]@users.noreply.github.com'
git add dist/ git add dist/
git commit -m "Release {{ github.release.tag_name }}" git commit -m "Release ${{ github.release.tag_name }}"
git tag {{ github.event.inputs.tag }} git tag ${{ github.event.inputs.tag }}
git push git push