mirror of
https://github.com/chenasraf/express-otp.git
synced 2026-05-18 01:49:07 +00:00
build: fix build dir
This commit is contained in:
4
.github/workflows/develop.yml
vendored
4
.github/workflows/develop.yml
vendored
@@ -17,7 +17,7 @@ jobs:
|
||||
- run: yarn install --frozen-lockfile
|
||||
# - run: yarn test
|
||||
- run: yarn build
|
||||
- run: cd ./dist && yarn pack --filename=../package.tgz
|
||||
- run: cd ./build && yarn pack --filename=../package.tgz
|
||||
if: "contains(github.event.head_commit.message, '[publish]')"
|
||||
- uses: Klemensas/action-autotag@stable
|
||||
if: "contains(github.event.head_commit.message, '[publish]')"
|
||||
@@ -29,7 +29,7 @@ jobs:
|
||||
uses: JS-DevTools/npm-publish@v1
|
||||
if: "contains(github.event.head_commit.message, '[publish]')"
|
||||
with:
|
||||
package: ./dist/package.json
|
||||
package: ./build/package.json
|
||||
token: '${{ secrets.NPM_TOKEN }}'
|
||||
- name: Create Release
|
||||
if: steps.update_tag.outputs.tagname && contains(github.event.head_commit.message, '[publish]')
|
||||
|
||||
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@@ -15,7 +15,7 @@ jobs:
|
||||
- run: yarn install --frozen-lockfile
|
||||
# - run: yarn test
|
||||
- run: yarn build
|
||||
- run: cd ./dist && yarn pack --filename=../package.tgz
|
||||
- run: cd ./build && yarn pack --filename=../package.tgz
|
||||
if: "!contains(github.event.head_commit.message, '[skip publish]')"
|
||||
- uses: Klemensas/action-autotag@stable
|
||||
if: "!contains(github.event.head_commit.message, '[skip publish]')"
|
||||
@@ -26,7 +26,7 @@ jobs:
|
||||
- name: Publish on NPM
|
||||
uses: JS-DevTools/npm-publish@v1
|
||||
with:
|
||||
package: ./dist/package.json
|
||||
package: ./build/package.json
|
||||
token: '${{ secrets.NPM_TOKEN }}'
|
||||
- name: Create Release
|
||||
if: steps.update_tag.outputs.tagname && !contains(github.event.head_commit.message, '[skip publish]')
|
||||
|
||||
Reference in New Issue
Block a user