|
20 | 20 | NX_SKIP_NX_CACHE: true |
21 | 21 | FILTER: ${{ github.event_name == 'workflow_dispatch' && inputs.filter || '' }} |
22 | 22 | SET_TIMESTAMP_VERSION: ${{ inputs.tag == 'daily' }} |
23 | | - MOVE_DAILY_TAG: ${{ inputs.tag == 'daily' }} |
24 | | - MOVE_STABLE_TAG: ${{ inputs.tag == 'stable' }} |
25 | 23 |
|
26 | 24 | jobs: |
27 | 25 | build: |
@@ -145,32 +143,13 @@ jobs: |
145 | 143 | working-directory: ${{ steps.scopedPackage.outputs.packageDir }} |
146 | 144 | env: |
147 | 145 | NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
148 | | - run: | |
149 | | - pnpm set //npm.pkg.github.com/:_authToken="$NODE_AUTH_TOKEN"; |
150 | | - pnpm publish --no-git-checks --quiet --ignore-scripts --registry https://npm.pkg.github.com; |
151 | | -
|
152 | | - - name: Move 'daily' tag |
153 | | - if: ${{ env.MOVE_DAILY_TAG == 'true' }} |
154 | | - env: |
155 | | - PACKAGE_NAME: ${{ steps.scopedPackage.outputs.name }} |
156 | | - PACKAGE_VERSION: ${{ steps.scopedPackage.outputs.version }} |
157 | | - PACKAGE_VERSION_MAJOR: ${{ steps.scopedPackage.outputs.majorVersion }} |
158 | | - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
159 | | - run: | |
160 | | - pnpm set //npm.pkg.github.com/:_authToken="$NODE_AUTH_TOKEN" |
161 | | - pnpm dist-tag add $PACKAGE_NAME@$PACKAGE_VERSION $PACKAGE_VERSION_MAJOR-daily --registry=https://npm.pkg.github.com |
162 | | -
|
163 | | - - name: Move 'stable' tag |
164 | | - if: ${{ env.MOVE_STABLE_TAG == 'true' }} |
165 | | - env: |
166 | 146 | PACKAGE_NAME: ${{ steps.scopedPackage.outputs.name }} |
167 | 147 | PACKAGE_VERSION: ${{ steps.scopedPackage.outputs.version }} |
168 | 148 | PACKAGE_VERSION_MAJOR: ${{ steps.scopedPackage.outputs.majorVersion }} |
169 | | - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
170 | 149 | run: | |
171 | | - pnpm set //npm.pkg.github.com/:_authToken="$NODE_AUTH_TOKEN" |
172 | | - pnpm dist-tag add $PACKAGE_NAME@$PACKAGE_VERSION $PACKAGE_VERSION_MAJOR-stable --registry=https://npm.pkg.github.com |
173 | | -
|
| 150 | + pnpm set //npm.pkg.github.com/:_authToken="$NODE_AUTH_TOKEN"; |
| 151 | + pnpm publish --no-git-checks --quiet --ignore-scripts --tag $PACKAGE_VERSION_MAJOR-${{ inputs.tag }} --registry https://npm.pkg.github.com; |
| 152 | + pnpm dist-tag add $PACKAGE_NAME@$PACKAGE_VERSION latest --registry=https://npm.pkg.github.com; |
174 | 153 |
|
175 | 154 | notify: |
176 | 155 | runs-on: devextreme-shr2 |
|
0 commit comments