diff --git a/.github/workflows/playground.ci.yml b/.github/workflows/playground.ci.yml index c9ca855c..2cef2eaf 100644 --- a/.github/workflows/playground.ci.yml +++ b/.github/workflows/playground.ci.yml @@ -10,6 +10,7 @@ on: - 'packages/realtime/**' - 'packages/matterport/**' - 'packages/autodesk/**' + - 'packages/three/**' - '.github/workflows/playground.ci.yml' jobs: package: diff --git a/.github/workflows/three.ci.yml b/.github/workflows/three.ci.yml new file mode 100644 index 00000000..b8443234 --- /dev/null +++ b/.github/workflows/three.ci.yml @@ -0,0 +1,53 @@ +name: Three - Publish Package +on: + push: + branches: + - lab + - beta + - main + paths: + - 'packages/three/**' + - '.github/workflows/three.ci.yml' +jobs: + package: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20] + steps: + - uses: actions/checkout@v4 + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 9.10.0 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: 'pnpm' + - name: Install dependencies + run: pnpm install --no-frozen-lockfile + env: + NPM_CONFIG_USERCONFIG: .npmrc.ci + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + - run: git config --global user.name SuperViz + - run: git config --global user.email ci@superviz.com + - name: Publish npm package + run: npm whoami && pnpm run semantic-release --filter=@superviz/threejs-plugin + env: + NPM_CONFIG_USERCONFIG: .npmrc.ci + GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + slack: + needs: package + name: Slack Notification + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Slack Notification + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} + SLACK_ICON: https://avatars.slack-edge.com/2020-11-18/1496892993975_af721d1c045bea2d5a46_48.png + MSG_MINIMAL: true + SLACK_USERNAME: Deploy matterport version ${{ github.ref_name }} \ No newline at end of file