diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eb2fd30..42c379b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,12 +18,7 @@ jobs: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - cache: "npm" - - run: npm i -g npm@7 + - uses: volta-cli/action@v1 - run: npm ci - run: npm run build --if-present - run: npm test @@ -33,9 +28,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: "16.x" + - uses: volta-cli/action@v1 - uses: webfactory/ssh-agent@v0.5.3 with: ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }} diff --git a/package-lock.json b/package-lock.json index 13b2fe2..a2078da 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "docusaurus-plugin-image-zoom", - "version": "0.1.0", + "version": "0.1.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "docusaurus-plugin-image-zoom", - "version": "0.1.0", + "version": "0.1.1", "license": "MIT", "dependencies": { "medium-zoom": "^1.0.6" diff --git a/package.json b/package.json index ddbc468..a80980e 100644 --- a/package.json +++ b/package.json @@ -19,5 +19,9 @@ }, "dependencies": { "medium-zoom": "^1.0.6" + }, + "volta": { + "node": "16.20.0", + "npm": "7.24.2" } }