-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2061 from mainmatter/chore-use-volta-on-ci
chore(ci): use volta-cli github action for node and pnpm setup
- Loading branch information
Showing
2 changed files
with
31 additions
and
37 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 |
---|---|---|
|
@@ -10,23 +10,22 @@ on: | |
- cron: '0 3 * * *' # daily, at 3am | ||
|
||
env: | ||
PNPM_VERSION: 8.8.0 | ||
VOLTA_FEATURE_PNPM: 1 | ||
|
||
jobs: | ||
docs: | ||
name: API docs | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
- uses: pnpm/[email protected] | ||
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 | ||
- uses: volta-cli/action@d253558a6e356722728a10e9a469190de21a83ef # v4 | ||
- uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3 | ||
with: | ||
version: ${{ env.PNPM_VERSION }} | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
node-version: 18.17 | ||
cache: pnpm | ||
path: "**/node_modules" | ||
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm- | ||
- run: pnpm install | ||
- run: pnpm run docs | ||
|
@@ -39,15 +38,14 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: ${{ env.PNPM_VERSION }} | ||
|
||
- uses: actions/[email protected] | ||
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 | ||
- uses: volta-cli/action@d253558a6e356722728a10e9a469190de21a83ef # v4 | ||
- uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3 | ||
with: | ||
node-version: 18.17 | ||
cache: pnpm | ||
path: "**/node_modules" | ||
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm- | ||
- run: pnpm install | ||
- run: pnpm build | ||
|
@@ -67,15 +65,14 @@ jobs: | |
- ember-lts-4.12 | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: ${{ env.PNPM_VERSION }} | ||
|
||
- uses: actions/[email protected] | ||
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 | ||
- uses: volta-cli/action@d253558a6e356722728a10e9a469190de21a83ef # v4 | ||
- uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3 | ||
with: | ||
node-version: 18.17 | ||
cache: pnpm | ||
path: "**/node_modules" | ||
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm- | ||
- run: pnpm install | ||
- run: pnpm build | ||
|
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 |
---|---|---|
|
@@ -6,30 +6,27 @@ on: | |
- 'v*' | ||
|
||
env: | ||
PNPM_VERSION: 8.8.0 | ||
VOLTA_FEATURE_PNPM: 1 | ||
|
||
jobs: | ||
release: | ||
name: release | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
- uses: pnpm/[email protected] | ||
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 | ||
- uses: volta-cli/action@d253558a6e356722728a10e9a469190de21a83ef # v4 | ||
- uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3 | ||
with: | ||
version: ${{ env.PNPM_VERSION }} | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
node-version: 18.17 | ||
registry-url: 'https://registry.npmjs.org' | ||
cache: pnpm | ||
|
||
path: "**/node_modules" | ||
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm- | ||
- run: pnpm install | ||
- run: pnpm build | ||
|
||
- name: auto-dist-tag | ||
run: npx auto-dist-tag@1 --write | ||
run: pnpm dlx auto-dist-tag@1 --write | ||
working-directory: packages/qunit-dom | ||
|
||
- run: npm publish | ||
|