Skip to content

Merge pull request #29 from SuperViz/fix/semmantic-release-packages #5

Merge pull request #29 from SuperViz/fix/semmantic-release-packages

Merge pull request #29 from SuperViz/fix/semmantic-release-packages #5

Workflow file for this run

name: Yjs Provider - Publish Package
on:
push:
branches:
- lab
- beta
- main
paths:
- "packages/yjs/**"
- ".github/workflows/yjs.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/yjs
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 yjs provider version ${{ github.ref_name }}