diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index ead4c1b27..000000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: Publish Package -on: - release: - types: [published] - - -jobs: - build-typescript: - uses: ./.github/workflows/typescript.yml - - package: - needs: [build-typescript] - uses: ./.github/workflows/package.yml - - publish: - runs-on: macos-15 - needs: [package] - steps: - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - registry-url: 'https://registry.npmjs.org' - - name: Download Assembled Folder - uses: actions/download-artifact@v4 - with: - name: 'Assembled' - path: Package/Assembled - - name: Diagnose NPM Registry Connectivity - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - run: | - echo "--- Node & NPM versions ---" - node --version - npm --version - echo "--- NPM config registry ---" - npm config get registry - echo "--- NPM ping ---" - npm ping - echo "--- NPM whoami ---" - npm whoami - - name: Version & Publish Package - run: | - npm version --no-git-tag-version ${GITHUB_REF/refs\/tags\//} - npm publish --access public - working-directory: ./Package/Assembled - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/publish_preview.yml b/.github/workflows/publish_preview.yml deleted file mode 100644 index fb96e64d8..000000000 --- a/.github/workflows/publish_preview.yml +++ /dev/null @@ -1,57 +0,0 @@ -name: Publish Package For Preview -on: - workflow_dispatch: - inputs: - release_version: - description: 'NPM Release Version' - required: true - type: string - default: 1.0.0 - NPM_tag: - description: 'NPM Tag' - required: true - type: string - default: 'preview' - -jobs: - build-typescript: - uses: ./.github/workflows/typescript.yml - - package: - needs: [build-typescript] - uses: ./.github/workflows/package.yml - - publish: - runs-on: macos-15 - needs: [package] - steps: - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - registry-url: 'https://registry.npmjs.org' - - name: Download Assembled Folder - uses: actions/download-artifact@v4 - with: - name: 'Assembled' - path: Package/Assembled - - name: Diagnose NPM Registry Connectivity - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - run: | - echo "--- Node & NPM versions ---" - node --version - npm --version - echo "--- NPM config registry ---" - npm config get registry - echo "--- NPM ping ---" - npm ping - echo "--- NPM whoami ---" - npm whoami - - name: Version & Publish Package - run: | - npm version --no-git-tag-version ${{ github.event.inputs.release_version }} - npm publish --access public --tag ${{ github.event.inputs.NPM_tag }} - working-directory: ./Package/Assembled - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file diff --git a/README.md b/README.md index 56bb8d686..8895008a0 100644 --- a/README.md +++ b/README.md @@ -230,7 +230,7 @@ cd Assembled npm pack ``` -Package content and the resulting `.tgz` are in `Package\Assembled`. The module's source `package.json` uses a development placeholder version; the [publish workflow](.github/workflows/publish.yml) sets the package version from the release tag before publishing. +Package content and the resulting `.tgz` are in `Package\Assembled`. The module's source `package.json` uses a development placeholder version. Official npm releases (stable and `preview`) are built from `master`, versioned, and published through Microsoft's ESRP release pipeline; this repository's workflows never publish to npm. The npm README is copied from `Modules\@babylonjs\react-native\README.md` by `copyCommonFiles` in `Package\gulpfile.js`. Update that file for package usage changes; npm receives the updated README when a new package version is published.