[pull] master from verdaccio:master #515
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Changesets Publish Test | |
| on: | |
| pull_request: | |
| concurrency: | |
| group: changeset-pr-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| version: | |
| if: github.event.pull_request.head.repo.fork == false | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install dependencies with a custom registry | |
| uses: ./.github/actions/install-app | |
| - name: crowdin download | |
| env: | |
| CROWDIN_VERDACCIO_API_KEY: ${{ secrets.CROWDIN_VERDACCIO_API_KEY }} | |
| CONTEXT: production | |
| run: pnpm crowdin:download | |
| - name: build | |
| run: pnpm build | |
| - name: Docker test | |
| run: | | |
| docker run -d -it --rm --name verdaccio -p 4873:4873 verdaccio/verdaccio:6 | |
| - name: login | |
| run: npx npm-cli-login -u test -p 1234 -e test@domain.test -r http://localhost:4873 | |
| - name: Prepare | |
| # to allow local snapshot | |
| run: rm .changeset/pre.json | |
| - name: Create snapshot | |
| run: pnpm local:snapshots | |
| - name: Changeset version | |
| run: pnpm local:publish |