Skip to content

Commit

Permalink
WIP: CI: fix npm package smoke tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lovell committed Oct 11, 2023
1 parent 6377d5a commit 70b1802
Showing 1 changed file with 22 additions and 9 deletions.
31 changes: 22 additions & 9 deletions .github/workflows/npm.yml
@@ -1,15 +1,15 @@
name: "CI: npm smoke test"

on:
push:
tags:
- "v**"
on: push
# push:
# tags:
# - "v**"

permissions: {}

jobs:
release-smoke-test:
name: "${{ github.ref }} ${{ matrix.name }}"
name: "${{ github.ref_name }} ${{ matrix.name }}"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -46,6 +46,7 @@ jobs:
with:
script: |
core.setOutput('semver', context.ref.replace('refs/tags/v',''))
core.setOutput('semver','0.33.0-alpha.8')
- name: Create package.json
uses: DamianReeves/write-file-action@v1.2
with:
Expand All @@ -71,30 +72,42 @@ jobs:
run: |
npm install --ignore-scripts
node release.mjs
rm -r node_modules/ package-lock.json
rm -r node_modules/
rm package-lock.json
ls
- name: Run with Node.js + pnpm
run: |
pnpm install --ignore-scripts
node release.mjs
rm -r node_modules/ pnpm-lock.yaml
rm -r node_modules/
rm pnpm-lock.yaml
ls
- name: Run with Node.js + yarn
run: |
corepack enable
yarn set version stable
yarn config set enableImmutableInstalls false
yarn config set enableScripts false
yarn config set nodeLinker node-modules
yarn install
node release.mjs
rm -r node_modules/ .yarn/ yarn.lock .yarnrc.yml
rm -r node_modules/
rm -r .yarn/
rm yarn.lock
rm .yarnrc.yml
corepack disable
ls
- name: Run with Deno
run: deno run --allow-read --allow-ffi release.mjs
run: |
deno run --allow-read --allow-ffi release.mjs
ls
- name: Run with Bun
if: ${{ !contains(matrix.os, 'windows') }}
run: |
bun install --ignore-scripts
bun release.mjs
ls

0 comments on commit 70b1802

Please sign in to comment.