Skip to content

Commit

Permalink
restore-yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
jdart-bold committed Nov 21, 2023
1 parent 89dd5bf commit a7e8f54
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4,471 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/onmerge.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: NPM Lint Test
name: Linter and Tests
run-name: Deploy by ${{ github.actor }}

on:
Expand All @@ -14,7 +14,7 @@ on:

jobs:
yarn:
name: NPM Build
name: Build
runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -25,10 +25,10 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'npm'
cache: 'yarn'

- name: Install dependencies
run: npm install --no-progress
- run: npm run lint-ci
- run: npm run test-ci
run: yarn --frozen-lockfile --no-progress
- run: yarn lint-ci
- run: yarn test-ci

12 changes: 6 additions & 6 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'npm'
cache: 'yarn'
registry-url: 'https://registry.npmjs.org'
scope: '@boldcommerce'

- run: npm install --no-progress
- run: npm run lint-ci
- run: npm run test-ci
- run: npm run build
- run: yarn --frozen-lockfile --no-progress
- run: yarn lint-ci
- run: yarn test-ci
- run: yarn build

- name: Get and set version number
id: set_new_version
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
git config --global user.email 'github-ci@boldcommerce.com'
git config --global user.name 'bold-github-ci'
npm version --no-git-tag-version --allow-same-version $new_version || exit 0
git add package.json package-lock.json
git add package.json
git commit -m 'Bump version number for release' || exit 0
git push origin || exit 0
Expand Down
Loading

0 comments on commit a7e8f54

Please sign in to comment.