From a484f66e690686a4b977999cd84fff2817dada4a Mon Sep 17 00:00:00 2001 From: lyswhut Date: Wed, 10 Mar 2021 01:02:30 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=AF=AD=E6=B3=95?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 97298133..aee0df23 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,8 +14,8 @@ jobs: uses: actions/checkout@v2 - name: Install Node.js uses: actions/setup-node@v2 - with: - node-version: '12' + with: + node-version: '12.x' - name: Cache file - uses: actions/cache@v2 with: @@ -39,8 +39,8 @@ jobs: uses: actions/checkout@v2 - name: Install Node.js uses: actions/setup-node@v2 - with: - node-version: '12' + with: + node-version: '12.x' - name: Cache file - uses: actions/cache@v2 with: @@ -70,8 +70,8 @@ jobs: - name: Install Node.js uses: actions/setup-node@v2 - with: - node-version: '12' + with: + node-version: '12.x' - name: Cache file - uses: actions/cache@v2 with: From 127d279266def6cb9f0a5fc0c22e39ea9adb1408 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Wed, 10 Mar 2021 01:15:30 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=AF=AD=E6=B3=95?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aee0df23..ff541c94 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: with: node-version: '12.x' - name: Cache file - - uses: actions/cache@v2 + uses: actions/cache@v2 with: path: | node_modules @@ -27,7 +27,8 @@ jobs: key: ${{ runner.os }}-build-caches-${{ hashFiles('**/package-lock.json') }} restore-keys: | ${{ runner.os }}-build- - - run: npm install && npm run publish:gh + - name: Build & Release + run: npm install && npm run publish:gh env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -42,7 +43,7 @@ jobs: with: node-version: '12.x' - name: Cache file - - uses: actions/cache@v2 + uses: actions/cache@v2 with: path: | node_modules @@ -52,7 +53,8 @@ jobs: key: ${{ runner.os }}-build-caches-${{ hashFiles('**/package-lock.json') }} restore-keys: | ${{ runner.os }}-build- - - run: npm install && npm run publish:gh:mac + - name: Build & Release + run: npm install && npm run publish:gh:mac env: ELECTRON_CACHE: $HOME/.cache/electron ELECTRON_BUILDERCACHE: $HOME/.cache/electron-builder @@ -63,7 +65,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Install package - - run: sudo apt-get install -y rpm bsdtar + run: sudo apt-get install -y rpm bsdtar - name: Check out git repository uses: actions/checkout@v2 @@ -73,7 +75,7 @@ jobs: with: node-version: '12.x' - name: Cache file - - uses: actions/cache@v2 + uses: actions/cache@v2 with: path: | node_modules @@ -83,6 +85,7 @@ jobs: key: ${{ runner.os }}-build-caches-${{ hashFiles('**/package-lock.json') }} restore-keys: | ${{ runner.os }}-build- - - run: npm install && npm run publish:gh:linux + - name: Build & Release + run: npm install && npm run publish:gh:linux env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}