chore: switch back to npm

This commit is contained in:
EGOIST 2021-06-03 17:54:26 +08:00
parent 5e5a9f19fb
commit 893bac6851
4 changed files with 12407 additions and 4328 deletions

View File

@ -23,22 +23,15 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Cache ~/.pnpm-store
uses: actions/cache@v2
env:
cache-name: cache-pnpm-store
- uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ matrix.node-version }}-build-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }}
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-${{ matrix.node-version }}-build-${{ env.cache-name }}-
${{ runner.os }}-${{ matrix.node-version }}-build-
${{ runner.os }}-
- name: Install pnpm
run: npm i -g pnpm
- run: pnpm i
${{ runner.os }}-node-
- run: npm ci
- run: npm run test --if-present
- run: pnpx -y semantic-release
- run: npx -y semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

12400
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

4314
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -386,7 +386,7 @@ test('minify', async () => {
)
expect(output).toMatchInlineSnapshot(`
"\\"use strict\\";Object.defineProperty(exports, \\"__esModule\\", {value: true});function f(){return\\"foo\\"}exports.foo = f;
"\\"use strict\\";Object.defineProperty(exports, \\"__esModule\\", {value: true});function o(){return\\"foo\\"}exports.foo = o;
"
`)
expect(outFiles).toMatchInlineSnapshot(`