Run publish to @dev tag in npm on each commit

This commit is contained in:
Lukasz Ostrowski 2023-03-06 15:31:49 +01:00
parent b79c188cfd
commit 17428c8a3b

View file

@ -68,8 +68,9 @@ jobs:
- name: Build project - name: Build project
run: pnpm build run: pnpm build
- name: Release on @dev tag in npm - name: Release on @dev tag in npm
# run: npx changeset version --snapshot pr && pnpm publish --tag dev --no-git-checks run: npx changeset version --snapshot pr && pnpm publish --tag dev --no-git-checks
run: npx changeset version --snapshot pr env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: echo "PACKAGE_JSON=$(jq -c . < package.json)" >> $GITHUB_ENV - run: echo "PACKAGE_JSON=$(jq -c . < package.json)" >> $GITHUB_ENV
- run: echo '${{ fromJson(env.PACKAGE_JSON).version }}' - run: echo '${{ fromJson(env.PACKAGE_JSON).version }}'
- name: Create with released tag - name: Create with released tag