Skip to content

Merge pull request #41 from Marshal27/release-please--branches--main-… #49

Merge pull request #41 from Marshal27/release-please--branches--main-…

Merge pull request #41 from Marshal27/release-please--branches--main-… #49

name: release-please
on:
push:
branches:
- main
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
package-name: shadow-container-query-polyfill
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.x'
if: ${{ steps.release.outputs.release_created }}
- run: npm install
if: ${{ steps.release.outputs.release_created }}
- run: npm run build
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
if: ${{ steps.release.outputs.release_created }}
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
if: ${{ steps.release.outputs.release_created }}