Skip to content

fix: github actions #150

fix: github actions

fix: github actions #150

Workflow file for this run

name: Release New Version and publish
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Detect what files changed
uses: dorny/paths-filter@v2
id: changes
with:
token: ${{ github.token }}
filters: |
js:
- '**/*.[tj]{s,sx}'
- 'package.json'
- '.github/workflows/release.yml'
- name: Release
if: steps.changes.outputs.js == 'true'
uses: mikeal/merge-release@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}