Skip to content

Commit

Permalink
Switch C.I. entirely to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Jul 21, 2022
1 parent b62401f commit 5a577cb
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 26 deletions.
20 changes: 20 additions & 0 deletions .github/actions/pnpm/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Setup node and pnpm
description: Setup node and install dependencies using pnpm
runs:
using: "composite"
steps:
- uses: volta-cli/action@v1
# minimum supported Node
with:
node-version: 14.x
- name: Cache pnpm modules
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- uses: pnpm/[email protected]
with:
version: 7.5.2
run_install: true
35 changes: 9 additions & 26 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,19 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
with:
node-version: 14.x
- run: yarn install --frozen-lockfile
- run: yarn lint
- run: yarn test:ember
- uses: ./.github/actions/pnpm
- run: pnpm lint
- run: pnpm test:ember

floating-dependencies:
name: "Floating Dependencies"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
with:
node-version: 14.x
- run: yarn install --no-lockfile
- run: yarn test:ember
- uses: ./.github/actions/pnpm
- run: rm pnpm-lock.yaml && pnpm install
- run: pnpm test:ember

try-scenarios:
name: "Try: ${{ matrix.ember-try-scenario }}"
Expand All @@ -58,11 +53,7 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
with:
node-version: 14.x
- name: install dependencies
run: yarn install --frozen-lockfile
- uses: ./.github/actions/pnpm
- name: test
run: node_modules/.bin/ember try:one ${{ matrix.ember-try-scenario }} --skip-cleanup

Expand All @@ -73,20 +64,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install node
uses: actions/setup-node@v2
with:
node-version: 14.x
registry-url: 'https://registry.npmjs.org'

- name: install dependencies
run: yarn install --frozen-lockfile
- uses: ./.github/actions/pnpm

- name: auto-dist-tag
run: npx auto-dist-tag@1 --write

- name: publish to npm
run: npm publish
run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 comments on commit 5a577cb

Please sign in to comment.