diff --git a/.github/workflows/ci-lint.yml b/.github/workflows/ci-lint.yml index 6426e6609..e663abb0a 100644 --- a/.github/workflows/ci-lint.yml +++ b/.github/workflows/ci-lint.yml @@ -2,23 +2,9 @@ name: CI Lint on: [push, pull_request] +permissions: + contents: read + jobs: - ci-lint: - name: Node Lint - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 - - name: Use Node - uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2 - with: - node-version-file: '.nvmrc' - - name: Install - run: yarn install --immutable - - name: Format - run: yarn format:check - - name: Lint - run: yarn lint - - name: Lint Lockfile - run: yarn lint:lockfile + lint: + uses: verdaccio/verdaccio/.github/workflows/yarn-ci-lint.yml@master diff --git a/.github/workflows/docker-publish-pre-check.yml b/.github/workflows/docker-publish-pre-check.yml deleted file mode 100644 index 3ac6431a1..000000000 --- a/.github/workflows/docker-publish-pre-check.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Docker & Publish Pre-check - -on: [push, pull_request] - -jobs: - testDocker: - name: Test Docker Build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 - - name: Build - run: docker build . - env: - VERDACCIO_BUILD_REGISTRY: https://registry.npmjs.org - - testVerdaccio: - name: Test Verdaccio Publish - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 - - name: Publish - uses: verdaccio/github-actions/publish@f2e0370cfa5d74d24c325017b701bfddc9cc2e5d # tag=v0.4.0 - with: - args: -d diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 7e5af24e2..351baa1bc 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -20,37 +20,10 @@ on: - 'v*' jobs: - docker: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 - - uses: docker/setup-qemu-action@27d0a4f181a40b142cce983c5393082c365d1480 # tag=v1 - - uses: docker/setup-buildx-action@v1 - with: - driver-opts: network=host - - uses: docker/login-action@v1 - name: Login Docker Hub - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - name: Prepare docker image tags - id: docker_meta - uses: crazy-max/ghaction-docker-meta@v1 - with: - images: ${{ github.repository }} - tag-custom: 6.x-next - tag-custom-only: ${{ github.ref == 'refs/heads/6.x' }} - tag-latest: true - tag-semver: | - {{version}} - {{major}} - {{major}}.{{minor}} - - name: Build & Push - uses: docker/build-push-action@v2 - with: - context: . - file: ./Dockerfile - platforms: linux/amd64,linux/arm64 - push: ${{ github.event_name != 'pull_request' }} - tags: ${{ steps.docker_meta.outputs.tags }} - labels: ${{ steps.docker_meta.outputs.labels }} + docker-publish: + secrets: inherit + uses: verdaccio/verdaccio/.github/workflows/shared-docker-publish.yml@master + with: + tag-latest: true + tag-custom: 6.x-next + tag-custom-only: ${{ github.ref == 'refs/heads/6.x' }} diff --git a/.github/workflows/e2e-angular-cli-workflow.yml b/.github/workflows/e2e-angular-cli-workflow.yml index 113975f07..3c2349451 100644 --- a/.github/workflows/e2e-angular-cli-workflow.yml +++ b/.github/workflows/e2e-angular-cli-workflow.yml @@ -1,155 +1,12 @@ on: - schedule: - - cron: '0 3 * * 5' pull_request: - branches: - - '**' + push: + +concurrency: + group: e2e-angular-${{ github.ref }}-6.x + cancel-in-progress: true name: 'E2E Angular CLI with verdaccio' jobs: - npm: - name: 'npm6:angular example' - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 - - - name: 'Use Node.js 18.x' - uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2 - with: - node-version: 18.x - - name: 'install latest npm' - run: npm i -g npm@latest-6 - - name: Install Dependencies - run: yarn install - - name: 'Run verdaccio in the background' - run: | - nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml & - - name: 'Ping to verdaccio' - run: | - npm ping --registry http://localhost:4873 - - name: 'Running the integration test' - run: | - source scripts/e2e-setup-ci.sh - echo "registry=http://localhost:4873" > ~/.npmrc - npm config set loglevel="http" - npm config set fetch-retries="5" - npm config set fetch-retry-factor="50" - npm config set fetch-retry-mintimeout="20000" - npm config set fetch-retry-maxtimeout="80000" - npm install -g @angular/cli - ng new verdaccio-angular --interactive=false - - cd verdaccio-angular - npm install @angular-devkit/core@next @babel/preset-env @babel/core -D - - npm run ng build --aot - npm7: - name: 'npm7:angular example' - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 - - - name: 'Use Node.js 18.x' - uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2 - with: - node-version: 18.x - - name: 'install latest npm' - run: npm i -g npm@next-7 - - name: Install Dependencies - run: yarn install - - name: 'Run verdaccio in the background' - run: | - nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml & - - name: 'Ping to verdaccio' - run: | - npm ping --registry http://localhost:4873 - - name: 'Running the integration test' - run: | - source scripts/e2e-setup-ci.sh - echo "registry=http://localhost:4873" > ~/.npmrc - npm config set loglevel="silent" - npm config set fetch-retries="5" - npm config set fetch-retry-factor="50" - npm config set fetch-retry-mintimeout="20000" - npm config set fetch-retry-maxtimeout="80000" - npm install -g @angular/cli - ng new verdaccio-angular --interactive=false - - cd verdaccio-angular - npm install @angular-devkit/core@next @babel/preset-env @babel/core -D - - npm run ng build --aot - npm8: - name: 'npm8:angular example' - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 - - - name: 'Use Node.js 18.x' - uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2 - with: - node-version: 18.x - - name: 'install latest npm' - run: npm i -g npm@next-8 - - name: Install Dependencies - run: yarn install - - name: 'Run verdaccio in the background' - run: | - nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml & - - name: 'Ping to verdaccio' - run: | - npm ping --registry http://localhost:4873 - - name: 'Running the integration test' - run: | - source scripts/e2e-setup-ci.sh - echo "registry=http://localhost:4873" > ~/.npmrc - npm config set loglevel="silent" - npm config set fetch-retries="5" - npm config set fetch-retry-factor="50" - npm config set fetch-retry-mintimeout="20000" - npm config set fetch-retry-maxtimeout="80000" - npm install -g @angular/cli - ng new verdaccio-angular --interactive=false - - cd verdaccio-angular - npm install @angular-devkit/core@next @babel/preset-env @babel/core -D - - npm run ng build --aot - npm9: - name: 'npm9:angular example' - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 - - - name: 'Use Node.js 18.x' - uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2 - with: - node-version: 18.x - - name: Install Dependencies - run: yarn install - - name: 'Run verdaccio in the background' - run: | - nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml & - - name: 'Ping to verdaccio' - run: | - npm ping --registry http://localhost:4873 - - name: 'Running the integration test' - run: | - source scripts/e2e-setup-ci.sh - echo "registry=http://localhost:4873" > ~/.npmrc - npm config set loglevel="silent" - npm config set fetch-retries="5" - npm config set fetch-retry-factor="50" - npm config set fetch-retry-mintimeout="20000" - npm config set fetch-retry-maxtimeout="80000" - npm install -g @angular/cli - ng new verdaccio-angular --interactive=false - - cd verdaccio-angular - npm install @angular-devkit/core@next @babel/preset-env @babel/core -D - - npm run ng build --aot + e2e: + uses: verdaccio/verdaccio/.github/workflows/x-e2e-angular-cli-workflow.yml@master diff --git a/.github/workflows/e2e-audit-workflow.yml b/.github/workflows/e2e-audit-workflow.yml new file mode 100644 index 000000000..2543779a0 --- /dev/null +++ b/.github/workflows/e2e-audit-workflow.yml @@ -0,0 +1,12 @@ +on: + pull_request: + push: + +concurrency: + group: e2e-audit-${{ github.ref }}-6.x + cancel-in-progress: true + +name: 'Plugin Audit E2E' +jobs: + e2e: + uses: verdaccio/verdaccio/.github/workflows/x-e2e-audit-workflow.yml@master diff --git a/.github/workflows/e2e-gatsbyjs-cli-workflow.yml b/.github/workflows/e2e-gatsbyjs-cli-workflow.yml index 395b42209..167854825 100644 --- a/.github/workflows/e2e-gatsbyjs-cli-workflow.yml +++ b/.github/workflows/e2e-gatsbyjs-cli-workflow.yml @@ -1,79 +1,12 @@ on: - schedule: - - cron: '0 3 * * 5' pull_request: - branches: - - '**' + push: + +concurrency: + group: e2e-gastbyjs-${{ github.ref }}-6.x + cancel-in-progress: true name: 'E2E Gatsby.js CLI with verdaccio' jobs: - npm6: - name: 'npm6:gatsby example' - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 - - - name: 'Use Node.js 18.x' - uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2 - with: - node-version: 18.x - - name: 'install npm 6' - run: npm i -g npm@latest-6 - - name: Install Dependencies - run: yarn install - - name: 'Run verdaccio in the background' - run: | - nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml & - - name: 'Ping to verdaccio' - run: | - npm ping --registry http://localhost:4873 - - name: 'Running the integration test' - run: | - source scripts/e2e-setup-ci.sh - echo "registry=http://localhost:4873 - loglevel="warn" - fetch-retries=10 - fetch-retry-factor=2 - fetch-retry-mintimeout=10000 - fetch-retry-maxtimeout=80000" > ~/.npmrc - npm config list - npm i -g gatsby@4.24.7 - gatsby new my-gatsby - cd my-gatsby - npm run build - npm9: - name: 'npm9:gatsby example' - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 - - - name: 'Use Node.js 18.x' - uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2 - with: - node-version: 18.x - - name: 'install npm 9' - run: npm i -g npm@9.4.2 - - name: Install Dependencies - run: yarn install - - name: 'Run verdaccio in the background' - run: | - nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml & - - name: 'Ping to verdaccio' - run: | - npm ping --registry http://localhost:4873 - - name: 'Running the integration test' - run: | - source scripts/e2e-setup-ci.sh - echo "registry=http://localhost:4873 - loglevel="warn" - fetch-retries=10 - fetch-retry-factor=2 - fetch-retry-mintimeout=10000 - fetch-retry-maxtimeout=80000" > ~/.npmrc - npm config list - npm i -g gatsby@5.6.0 - gatsby new my-gatsby - cd my-gatsby - npm run build + e2e: + uses: verdaccio/verdaccio/.github/workflows/x-e2e-gatsbyjs-cli-workflow.yml@master diff --git a/.github/workflows/e2e-jest-workflow.yml b/.github/workflows/e2e-jest-workflow.yml index 0b0a4bc61..b29a62503 100644 --- a/.github/workflows/e2e-jest-workflow.yml +++ b/.github/workflows/e2e-jest-workflow.yml @@ -1,238 +1,12 @@ on: - schedule: - - cron: '0 3 * * 5' pull_request: - branches: - - '**' + push: + +concurrency: + group: e2e-jest-${{ github.ref }}-6.x + cancel-in-progress: true name: 'E2E Jest with verdaccio' jobs: - yarn: - name: 'yarn:jest example' - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 - - - name: 'Use Node.js 18.x' - uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2 - with: - node-version: 18.x - - name: Install Dependencies - run: yarn install - - name: 'Run verdaccio in the background' - run: | - nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml & - - name: 'Ping to verdaccio' - run: | - npm ping --registry http://localhost:4873 - - name: 'Running the integration test' - run: | - source scripts/e2e-setup-ci.sh - yarn init --yes - yarn add jest@29.5.0 --registry http://localhost:4873 - - echo "it('should pass', () => { expect(true).toBeTruthy(); });" | tee pass.test.js - yarn jest pass.test.js - - yarn add left-pad --registry http://localhost:4873 --verbose - echo "const leftPad = require('left-pad'); it('should resolve a module', () => { expect(typeof leftPad).toBe('function');});" | tee module.test.js - yarn jest module.test.js - yarn-modern: - name: 'yarn2:jest example' - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 - - - name: 'Use Node.js 18.x' - uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2 - with: - node-version: 18.x - - name: Install Dependencies - run: yarn install - - name: 'Run verdaccio in the background' - run: | - nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml & - - name: 'Ping to verdaccio' - run: | - npm ping --registry http://localhost:4873 - - name: 'Running the integration test' - run: | - source scripts/e2e-setup-ci.sh - yarn init --yes - yarn set version berry - yarn config set npmRegistryServer "http://localhost:4873" - yarn config set unsafeHttpWhitelist --json '["localhost"]' - yarn add jest@29.5.0 - - echo "it('should pass', () => { expect(true).toBeTruthy(); });" | tee pass.test.js - yarn jest pass.test.js - - yarn add left-pad - echo "const leftPad = require('left-pad'); it('should resolve a module', () => { expect(typeof leftPad).toBe('function');});" | tee module.test.js - yarn jest module.test.js - npm: - name: 'npm:jest example' - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 - - - name: 'Use Node.js 18.x' - uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2 - with: - node-version: 18.x - - name: 'install latest npm' - run: npm i -g npm@latest-6 - - name: Install Dependencies - run: yarn install - - name: 'Run verdaccio in the background' - run: | - nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml & - - name: 'Ping to verdaccio' - run: | - npm ping --registry http://localhost:4873 - - name: 'Running the integration test' - run: | - source scripts/e2e-setup-ci.sh - npm init --force - npm install jest@29.5.0 --registry http://localhost:4873 - - echo "it('should pass', () => { expect(true).toBeTruthy(); });" | tee pass.test.js - yarn jest pass.test.js - - yarn add left-pad --registry http://localhost:4873 --verbose - echo "const leftPad = require('left-pad'); it('should resolve a module', () => { expect(typeof leftPad).toBe('function');});" | tee module.test.js - yarn jest module.test.js - npm8: - name: 'npm8:jest example' - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 - - - name: 'Use Node.js 18.x' - uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2 - with: - node-version: 18.x - - name: 'install latest npm' - run: npm i -g npm@next-8 - - name: Install Dependencies - run: yarn install - - name: 'Run verdaccio in the background' - run: | - nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml & - - name: 'Ping to verdaccio' - run: | - npm ping --registry http://localhost:4873 - - name: 'Running the integration test' - run: | - source scripts/e2e-setup-ci.sh - npm init --force - npm install jest@29.5.0 --registry http://localhost:4873 - - echo "it('should pass', () => { expect(true).toBeTruthy(); });" | tee pass.test.js - yarn jest pass.test.js - - yarn add left-pad --registry http://localhost:4873 --verbose - echo "const leftPad = require('left-pad'); it('should resolve a module', () => { expect(typeof leftPad).toBe('function');});" | tee module.test.js - yarn jest module.test.js - npm9: - name: 'npm9:jest example' - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 - - - name: 'Use Node.js 18.x' - uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2 - with: - node-version: 18.x - - name: Install Dependencies - run: yarn install - - name: 'Run verdaccio in the background' - run: | - nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml & - - name: 'Ping to verdaccio' - run: | - npm ping --registry http://localhost:4873 - - name: 'Running the integration test' - run: | - source scripts/e2e-setup-ci.sh - npm init --force - npm install jest@29.4.2 --registry http://localhost:4873 - - echo "it('should pass', () => { expect(true).toBeTruthy(); });" | tee pass.test.js - yarn jest pass.test.js - - yarn add left-pad --registry http://localhost:4873 --verbose - echo "const leftPad = require('left-pad'); it('should resolve a module', () => { expect(typeof leftPad).toBe('function');});" | tee module.test.js - yarn jest module.test.js - - pnpm6: - name: 'pnpm:latest-6:jest example' - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 - - - name: 'Use Node.js 18.x' - uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2 - with: - node-version: 18.x - - name: 'install latest pnpm' - run: npm i -g pnpm@latest-6 - - name: Install Dependencies - run: yarn install - - name: 'Run verdaccio in the background' - run: | - nohup yarn node ./scripts/run-verdaccio.js & - - name: 'Ping to verdaccio' - run: | - pnpm ping --registry http://localhost:4873 - - name: 'Running the integration test' - run: | - source scripts/e2e-setup-ci.sh - pnpm init --force - pnpm install jest@29.5.0 --registry http://localhost:4873 - - echo "it('should pass', () => { expect(true).toBeTruthy(); });" | tee pass.test.js - yarn jest pass.test.js - - yarn add left-pad --registry http://localhost:4873 --verbose - echo "const leftPad = require('left-pad'); it('should resolve a module', () => { expect(typeof leftPad).toBe('function');});" | tee module.test.js - yarn jest module.test.js - pnpm7: - name: 'pnpm:7:jest example' - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 - - - name: 'Use Node.js 18.x' - uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2 - with: - node-version: 18.x - - name: 'install latest pnpm' - run: npm i -g pnpm@latest-7 - - name: Install Dependencies - run: yarn install - - name: 'Run verdaccio in the background' - run: | - yarn node ./scripts/run-verdaccio.js & - - name: 'Ping to verdaccio' - run: | - pnpm ping --registry http://localhost:4873 - - name: 'Running the integration test' - run: | - source scripts/e2e-setup-ci.sh - pnpm init - pnpm install jest@29.5.0 --registry http://localhost:4873 - - echo "it('should pass', () => { expect(true).toBeTruthy(); });" | tee pass.test.js - yarn jest pass.test.js - - yarn add left-pad --registry http://localhost:4873 --verbose - echo "const leftPad = require('left-pad'); it('should resolve a module', () => { expect(typeof leftPad).toBe('function');});" | tee module.test.js - yarn jest module.test.js + e2e: + uses: verdaccio/verdaccio/.github/workflows/x-e2e-jest-workflow.yml@master diff --git a/.github/workflows/registry.yml b/.github/workflows/registry.yml deleted file mode 100644 index 3bd8c5ce9..000000000 --- a/.github/workflows/registry.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: Test local registry for js vulnerabilities - -on: - schedule: - - cron: '0 */4 1 * *' -jobs: - security: - runs-on: ubuntu-latest - steps: - - name: Test for public javascript library vulnerabilities - uses: lirantal/is-website-vulnerable@02d7916b29a1fd9d6a9bea0d83960d4288afa1a6 # tag=1.15.10 - with: - scan-url: "https://registry.verdaccio.org" diff --git a/.github/workflows/release-snapshot.yml b/.github/workflows/release-snapshot.yml index 758a7dcbf..bbecbb429 100644 --- a/.github/workflows/release-snapshot.yml +++ b/.github/workflows/release-snapshot.yml @@ -6,27 +6,6 @@ on: branches: - 6.x jobs: - release: - name: Release Snapshot - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 - - name: Use Node (latest) - uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2 - with: - node-version-file: '.nvmrc' - - name: Install - run: yarn install - - name: Build - run: yarn build - - name: Declare some variables - shell: bash - run: | - echo "sha_short=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV" - - name: Bump up package - run: npm version prerelease --no-git-tag-version --preid ${{ env.sha_short }} - - name: Publish - run: sh scripts/publish-prerelease.sh - env: - REGISTRY_AUTH_TOKEN: ${{ secrets.VERDACCIO_REGISTRY_TOKEN_CANARY }} - REGISTRY_URL: registry.verdaccio.org + snapshot: + secrets: inherit + uses: verdaccio/verdaccio/.github/workflows/x-release-snapshot.yml@master diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 54ba29ea5..1b3ea340a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,27 +5,7 @@ on: tags: - '*' jobs: - release: - name: Release - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 - - name: Use Node (latest) - uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2 - with: - node-version-file: '.nvmrc' - - name: Install - run: yarn install - - name: Build - run: yarn build - - name: Types - run: yarn code:types - - name: Publish - run: sh scripts/publish.sh - env: - REGISTRY_AUTH_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }} - REGISTRY_URL: registry.npmjs.org - - name: Create release notes - run: sh scripts/github-release.sh - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + snapshot: + secrets: inherit + uses: verdaccio/verdaccio/.github/workflows/x-release.yml@master + diff --git a/.github/workflows/smok-test-docker.yml b/.github/workflows/smok-test-docker.yml deleted file mode 100644 index da302bf13..000000000 --- a/.github/workflows/smok-test-docker.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Docker Smoke Test -on: - workflow_dispatch: - push: - branches: - - 6.x -permissions: - contents: read -jobs: - test: - runs-on: ubuntu-latest - steps: - - uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3 - with: - node-version: 20 - - name: Docker test - run: | - docker run -d -it --rm --name verdaccio -p 4873:4873 verdaccio/verdaccio:5 - - name: verdaccio cli - run: npm install -g verdaccio --registry http://localhost:4873 - - name: gastby cli - run: npm install -g gatsby-cli --registry http://localhost:4873 - - name: netlify cli - run: npm install -g netlify-cli --registry http://localhost:4873 - - name: angular cli - run: npm install -g @angular/cli --registry http://localhost:4873 diff --git a/.github/workflows/smoke-test-docker.yml b/.github/workflows/smoke-test-docker.yml new file mode 100644 index 000000000..6c0e1bccb --- /dev/null +++ b/.github/workflows/smoke-test-docker.yml @@ -0,0 +1,17 @@ +name: Docker Smoke Test +on: + workflow_dispatch: + push: +permissions: + contents: read + +concurrency: + group: e2e-docker-pkgs-${{ github.ref }}-6.x + cancel-in-progress: true + +jobs: + smoke: + uses: verdaccio/verdaccio/.github/workflows/x-smok-test-docker.yml@master + with: + docker_tag: '6.x-next' + diff --git a/.github/workflows/smok-test-module.yml b/.github/workflows/smoke-test-module.yml similarity index 100% rename from .github/workflows/smok-test-module.yml rename to .github/workflows/smoke-test-module.yml diff --git a/.github/workflows/test-docker-publish.yml b/.github/workflows/test-docker-publish.yml new file mode 100644 index 000000000..e345411d5 --- /dev/null +++ b/.github/workflows/test-docker-publish.yml @@ -0,0 +1,7 @@ +name: Test Docker Build + +on: [push, pull_request] + +jobs: + testDocker: + uses: verdaccio/verdaccio/.github/workflows/test-docker-build.yml@master diff --git a/.github/workflows/test-publish-package.yml b/.github/workflows/test-publish-package.yml new file mode 100644 index 000000000..50cb58303 --- /dev/null +++ b/.github/workflows/test-publish-package.yml @@ -0,0 +1,7 @@ +name: Test Publish Package + +on: [push, pull_request] + +jobs: + testVerdaccio: + uses: verdaccio/verdaccio/.github/workflows/test-publish-package.yml@master