feat: changed to use transaction instead of managing sessions manuall… #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Player | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
build: | |
name: Deployment | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "16.16.0" | |
registry-url: "https://npm.pkg.github.com" | |
scope: "@streamyard" | |
- name: Install Dependencies | |
run: npm ci | |
- name: Build Package | |
run: npm run package | |
- name: Publish | |
if: ${{ github.ref == 'refs/heads/main' }} | |
run: npm publish --access restricted ./build/package | |
env: | |
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }} |