mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 14:43:25 +00:00
update deps, migrate to pnpm
This commit is contained in:
43
.github/workflows/docs.yml
vendored
43
.github/workflows/docs.yml
vendored
@@ -11,28 +11,33 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install packages
|
||||
working-directory: ./.docs
|
||||
run: npm install
|
||||
|
||||
- name: Build project
|
||||
working-directory: ./.docs
|
||||
run: npm run generate
|
||||
env:
|
||||
- uses: pnpm/action-setup@v2
|
||||
with:
|
||||
version: 8
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: "pnpm"
|
||||
|
||||
- name: Install packages
|
||||
working-directory: ./.docs
|
||||
run: pnpm install
|
||||
|
||||
- name: Build project
|
||||
working-directory: ./.docs
|
||||
run: pnpm run generate
|
||||
env:
|
||||
NUXT_APP_BASE_URL: /providers/
|
||||
|
||||
- name: Upload production-ready build files
|
||||
uses: actions/upload-pages-artifact@v1
|
||||
with:
|
||||
path: ./.docs/.output/public
|
||||
- name: Upload production-ready build files
|
||||
uses: actions/upload-pages-artifact@v1
|
||||
with:
|
||||
path: ./.docs/.output/public
|
||||
|
||||
deploy:
|
||||
name: Deploy
|
||||
|
21
.github/workflows/publish.yml
vendored
21
.github/workflows/publish.yml
vendored
@@ -13,17 +13,22 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v3
|
||||
|
||||
- uses: pnpm/action-setup@v2
|
||||
with:
|
||||
node-version: 18
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
|
||||
version: 8
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: "pnpm"
|
||||
registry-url: "https://registry.npmjs.org"
|
||||
|
||||
- name: Install packages
|
||||
run: npm ci
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Publish
|
||||
run: npm publish --access public
|
||||
run: pnpm publish --access public
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
33
.github/workflows/tests.yml
vendored
33
.github/workflows/tests.yml
vendored
@@ -13,22 +13,27 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- uses: pnpm/action-setup@v2
|
||||
with:
|
||||
version: 8
|
||||
|
||||
- name: Install packages
|
||||
run: npm install
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: "pnpm"
|
||||
|
||||
- name: Run tests
|
||||
run: npm run test
|
||||
- name: Install packages
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Run integration tests
|
||||
run: npm run build && npm run test:integration
|
||||
- name: Run tests
|
||||
run: pnpm run test
|
||||
|
||||
- name: Run linting
|
||||
run: npm run lint
|
||||
- name: Run integration tests
|
||||
run: pnpm run build && pnpm run test:integration
|
||||
|
||||
- name: Run linting
|
||||
run: pnpm run lint
|
||||
|
Reference in New Issue
Block a user