This commit is contained in:
weboko 2023-01-20 01:40:03 +01:00
parent 918c298826
commit ba13190f25
No known key found for this signature in database
1 changed files with 4 additions and 4 deletions

View File

@ -56,7 +56,7 @@ jobs:
- name: Build package - name: Build package
run: npm run build run: npm run build
work-directory: "create-waku-app" working-directory: "create-waku-app"
- name: Append git hash to version - name: Append git hash to version
shell: bash shell: bash
@ -65,11 +65,11 @@ jobs:
GIT_HASH=$(git rev-parse --short HEAD) GIT_HASH=$(git rev-parse --short HEAD)
cat package.json| jq --arg version "$CURR_VERSION-$GIT_HASH" '.version |= $version' > _package.json cat package.json| jq --arg version "$CURR_VERSION-$GIT_HASH" '.version |= $version' > _package.json
mv -f _package.json package.json mv -f _package.json package.json
work-directory: "create-waku-app" working-directory: "create-waku-app"
- name: Authenticate with registry - name: Authenticate with registry
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.WAKU_CREATE_APP_PUBLISH }}" > ./.npmrc run: echo "//registry.npmjs.org/:_authToken=${{ secrets.WAKU_CREATE_APP_PUBLISH }}" > ./.npmrc
work-directory: "create-waku-app" working-directory: "create-waku-app"
- run: npm publish --tag next --access public - run: npm publish --tag next --access public
work-directory: "create-waku-app" working-directory: "create-waku-app"