chore(deps): bump vidstack from 1.12.12 to 1.12.13 (#43) #17
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: Build and deploy @eduardoroth/media-player | |
on: | |
push: | |
branches: | |
- main | |
- 'v**' | |
jobs: | |
build-publish: | |
name: Build and publish media-player | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
name: Checkout code | |
- uses: EndBug/version-check@v2 | |
name: Check if there's an update on package version | |
id: check | |
with: | |
diff-search: true | |
- uses: actions/setup-node@v4 | |
name: Setup NodeJS | |
with: | |
node-version: '20.x' | |
registry-url: 'https://registry.npmjs.org' | |
cache: npm | |
- run: npm ci | |
name: Install dependencies | |
- run: npm run build | |
name: Build project | |
- if: steps.check.outputs.changed == 'true' | |
name: Publish to npm | |
run: npm publish --provenance --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |