Bump actions/checkout from 3 to 4 (#246) #62
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: Publish @mirohq/miro-api package to npm | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- .github/workflows/publish.yml | |
- packages/miro-api/package.json | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: 'yarn' | |
- run: yarn | |
working-directory: packages/miro-api | |
- run: yarn build | |
working-directory: packages/miro-api | |
# This step will look at version in package.json, compare it to NPM version and | |
# if the versions are different it will publish the package | |
- id: publish_miro_node | |
name: Publish miro-api package to NPM | |
uses: JS-DevTools/[email protected] | |
with: | |
token: ${{ secrets.NPM_PUBLISH_TOKEN }} | |
package: packages/miro-api/package.json |