Skip to content

Commit

Permalink
fix: build and use pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Nov 24, 2022
1 parent 17d5351 commit d8a9462
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 6,541 deletions.
31 changes: 23 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,14 @@ jobs:
steps:
- name: Check out
uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: pnpm/action-setup@v2
with:
node-version: '16'
version: 7
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'pnpm'
- name: Install dependencies
id: install_code
run: npm ci
Expand All @@ -32,12 +37,17 @@ jobs:
steps:
- name: Check out
uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: pnpm/action-setup@v2
with:
version: 7
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: 16
cache: 'pnpm'
- name: Install dependencies
id: install_code
run: npm ci
run: pnpm i
- name: Build
id: build_code
run: npm run verify:ios
Expand All @@ -48,12 +58,17 @@ jobs:
steps:
- name: Check out
uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: pnpm/action-setup@v2
with:
version: 7
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: 16
cache: 'pnpm'
- name: Install dependencies
id: install_code
run: npm ci
run: pnpm i
- name: Lint
id: lint_code
run: npm run lint
Expand Down
19 changes: 18 additions & 1 deletion .github/workflows/bump_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,21 @@ jobs:
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
remote_repo="https://${GITHUB_ACTOR}:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git"
git pull $remote_repo $CURRENT_BRANCH
git push $remote_repo HEAD:$CURRENT_BRANCH --follow-tags --tags
git push $remote_repo HEAD:$CURRENT_BRANCH --follow-tags --tags
create-cache:
if: "!startsWith(github.event.head_commit.message, 'chore(release):')"
runs-on: ubuntu-latest
name: "Create global cache on main branch"
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 7
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'pnpm'
- name: Install dependencies
id: install_code
run: pnpm install --frozen-lockfile
Loading

0 comments on commit d8a9462

Please sign in to comment.