-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7cd9655
commit 3e73af8
Showing
1 changed file
with
16 additions
and
18 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,14 +56,6 @@ jobs: | |
with: | ||
cmd: build | ||
|
||
- name: Cache build directory | ||
uses: actions/cache@v3 | ||
with: | ||
path: . | ||
key: ${{ runner.os }}-build-${{ hashFiles('build.tgz') }} | ||
restore-keys: | | ||
${{ runner.os }}-build- | ||
test: | ||
needs: setup | ||
runs-on: ubuntu-latest | ||
|
@@ -89,7 +81,9 @@ jobs: | |
if: ${{ github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'synchronize') }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Check out repository code ${{ github.repository }} on ${{ github.ref }} | ||
uses: actions/checkout@v3 | ||
|
||
- name: Configure Git user | ||
run: | | ||
git config --global user.email "[email protected]" | ||
|
@@ -106,14 +100,18 @@ jobs: | |
cache: 'npm' | ||
registry-url: 'https://registry.npmjs.org/' | ||
|
||
# Restore Build cache | ||
- name: Restore build cache | ||
- name: Restore node modules from cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: . | ||
key: ${{ runner.os }}-build-${{ hashFiles('build.tgz') }} | ||
path: node_modules | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-build- | ||
${{ runner.os }}-node- | ||
- name: Build | ||
uses: borales/actions-yarn@v4 | ||
with: | ||
cmd: build | ||
|
||
- name: Show workspace contents | ||
run: | | ||
|
@@ -143,7 +141,7 @@ jobs: | |
run: | | ||
echo "Version to publish: $NEW_VERSION" | ||
# - name: Publish to npm | ||
# run: | | ||
# npm version $NEW_VERSION | ||
# npm publish --tag dev | ||
- name: Publish to npm | ||
run: | | ||
npm version $NEW_VERSION | ||
npm publish --tag dev |