Skip to content

Commit

Permalink
ci: add three js ci
Browse files Browse the repository at this point in the history
  • Loading branch information
carlossantos74 committed Sep 16, 2024
1 parent c31aef1 commit d2d0d4e
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/playground.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- 'packages/realtime/**'
- 'packages/matterport/**'
- 'packages/autodesk/**'
- 'packages/three/**'
- '.github/workflows/playground.ci.yml'
jobs:
package:
Expand Down
53 changes: 53 additions & 0 deletions .github/workflows/three.ci.yml
Original file line number Diff line number Diff line change
@@ -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 [email protected]
- 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 }}

0 comments on commit d2d0d4e

Please sign in to comment.