diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 44fa24f5..687021dc 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -43,7 +43,7 @@ jobs: run: pnpm lint - name: Build Library ๐Ÿ‘ท - run: pnpm build --api="http://127.0.0.1:9080" --token="${{ secrets.TURBO_SERVER_TOKEN }}" + run: pnpm build - name: Run tests ๐Ÿงช run: pnpm test diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 80f819d1..44db5380 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,25 +11,49 @@ env: jobs: version: timeout-minutes: 15 - runs-on: ubuntu-latest + + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest] + node: [14] + steps: - - name: checkout code repository - uses: actions/checkout@v2 + - name: Checkout ๐Ÿ›Ž + uses: actions/checkout@master + + - name: Setup node env ๐Ÿ— + uses: actions/setup-node@v3 with: - fetch-depth: 0 - - name: setup node.js - uses: actions/setup-node@v2 + node-version: ${{ matrix.node }} + check-latest: true + + - uses: pnpm/action-setup@v2.2.2 + name: Install pnpm with: - node-version: 14 - - name: install pnpm - run: npm i pnpm@latest -g - - name: Setup npmrc - run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc - - name: setup pnpm config + version: 7 + run_install: false + + - name: Setup pnpm config ๐Ÿ— run: pnpm config set store-dir $PNPM_CACHE_FOLDER - - name: install dependencies - run: pnpm install - - name: create and publish versions + + - name: Setup npmrc ๐Ÿ— + run: echo "\n//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc + + - name: Install dependencies ๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป + run: pnpm install --no-frozen-lockfile + + - name: Run linter ๐Ÿงน + run: pnpm lint + + - name: Build Library ๐Ÿ‘ท + run: pnpm build + + - name: Run tests ๐Ÿงช + run: pnpm test + + - name: Bump versions ๐Ÿท and Publish ๐Ÿš€ uses: changesets/action@v1 with: version: pnpm ci:version