chore: update publish script
This commit is contained in:
@@ -43,7 +43,7 @@ jobs:
|
|||||||
run: pnpm lint
|
run: pnpm lint
|
||||||
|
|
||||||
- name: Build Library 👷
|
- name: Build Library 👷
|
||||||
run: pnpm build --api="http://127.0.0.1:9080" --token="${{ secrets.TURBO_SERVER_TOKEN }}"
|
run: pnpm build
|
||||||
|
|
||||||
- name: Run tests 🧪
|
- name: Run tests 🧪
|
||||||
run: pnpm test
|
run: pnpm test
|
||||||
|
|||||||
@@ -11,25 +11,49 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
version:
|
version:
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest]
|
||||||
|
node: [14]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: checkout code repository
|
- name: Checkout 🛎
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@master
|
||||||
|
|
||||||
|
- name: Setup node env 🏗
|
||||||
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
node-version: ${{ matrix.node }}
|
||||||
- name: setup node.js
|
check-latest: true
|
||||||
uses: actions/setup-node@v2
|
|
||||||
|
- uses: pnpm/action-setup@v2.2.2
|
||||||
|
name: Install pnpm
|
||||||
with:
|
with:
|
||||||
node-version: 14
|
version: 7
|
||||||
- name: install pnpm
|
run_install: false
|
||||||
run: npm i pnpm@latest -g
|
|
||||||
- name: Setup npmrc
|
- name: Setup pnpm config 🏗
|
||||||
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
|
|
||||||
- name: setup pnpm config
|
|
||||||
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
|
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
|
||||||
- name: install dependencies
|
|
||||||
run: pnpm install
|
- name: Setup npmrc 🏗
|
||||||
- name: create and publish versions
|
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
|
uses: changesets/action@v1
|
||||||
with:
|
with:
|
||||||
version: pnpm ci:version
|
version: pnpm ci:version
|
||||||
|
|||||||
Reference in New Issue
Block a user