Skip to content

Commit

Permalink
Going to build in the publish step
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanformio committed Mar 21, 2024
1 parent 7cd9655 commit 3e73af8
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions .github/workflows/repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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]"
Expand All @@ -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: |
Expand Down Expand Up @@ -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

0 comments on commit 3e73af8

Please sign in to comment.