Skip to content

Merge pull request #21 from fabianbormann/release-please--branches--m… #52

Merge pull request #21 from fabianbormann/release-please--branches--m…

Merge pull request #21 from fabianbormann/release-please--branches--m… #52

Workflow file for this run

name: Release
on:
push:
branches: ['main']
pull_request:
branches: ['main']
workflow_dispatch:
jobs:
create_release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: release-please-action
uses: google-github-actions/release-please-action@v3
with:
release-type: node
versioning-strategy: always-bump-patch
publish:
environment: CI
runs-on: ubuntu-latest
if: "contains(github.event.head_commit.message, 'release-please--branches--main')"
steps:
- uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci --ignore-scripts
- name: bundle
run: npm run build
- name: configure npm
run: |
echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > .npmrc
- name: Publish package on npmjs 📦
run: npm publish
env:
NPM_TOKEN: ${{ secrets.NPMJS_SECRET }}