Skip to content

refactor: update npm install command to include --legacy-peer-deps fl… #10

refactor: update npm install command to include --legacy-peer-deps fl…

refactor: update npm install command to include --legacy-peer-deps fl… #10

Workflow file for this run

name: Publish react-capture-events
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Use Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: '16.x'
- name: Install dependencies
run: npm install --legacy-peer-deps
- name: Build the package
run: npm run build
- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- id: changelog
name: Generate changelog
uses: mikepenz/release-changelog-builder-action@v2
with:
configuration: .github/release-changelog-config.json
env:
NPM_CONFIG_USERCONFIG: /home/runner/work/_temp/.npmrc
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create GitHub Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.sha }}
release_name: Release ${{ github.sha }}
body: ${{ steps.changelog.outputs.changelog }}
draft: false
prerelease: false