Skip to content

Bump eslint from 9.11.1 to 9.13.0 #21

Bump eslint from 9.11.1 to 9.13.0

Bump eslint from 9.11.1 to 9.13.0 #21

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
pull_request:
branches:
- next
- latest
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: npm run lint
merge:
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: automerge
uses: "pascalgn/[email protected]"
env:
GITHUB_TOKEN: "${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}"
MERGE_LABELS: ""
test:
needs: merge
runs-on: ubuntu-latest
steps:
- id: tagger
uses: phish108/[email protected]
with:
github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
dry-run: 'TRUE'
branch: next
- name: Autotag Draft
uses: phish108/autotag-action@master
id: taggerTest
with:
github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
branch: next
dry-run: 'true'
- name: verify Tags
run: |
if [ "${{ steps.tagger.outputs.new-tag }}" != "${{ steps.taggerTest.outputs.new-tag }}" ]
then
exit 1
fi
verify:
needs: test
runs-on: ubuntu-latest
steps:
- name: check changes
id: release
uses: phish108/[email protected]
- name: only dev changes (from PR)
run: exit 1
if: ${{ steps.release.outputs.hold_development == 'true' }}
- name: only protected changes (from other non-main branch)
run: exit 1
if: ${{ steps.release.outputs.hold_protected == 'true' }}
- name: Proceed to release
run: echo OK
build:
needs: verify
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 16.x
- 18.x
steps:
- uses: actions/checkout@v3
with:
ref: master
- run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
- name: check changes
id: release
uses: phish108/[email protected]
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- id: tagger
if: ${{ steps.release.outputs.proceed == 'true' }}
uses: phish108/[email protected]
with:
github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
branch: next
dry-run: 'TRUE'
- if: ${{ steps.release.outputs.proceed == 'true' }}
run: |
echo "${{ steps.tagger.outputs.new-tag }}"
npm ci
npm run package
npm --no-git-tag-version --allow-same-version version ${{ steps.tagger.outputs.new-tag }}
sed -ri "s/pypestream\/auto-release@[0-9]*\.[0-9]*\.[0-9]*/pypestream\/auto-release@${{ steps.tagger.outputs.new-tag }}/g" README.md
git commit -m "updated dist file for $GITSHA" -a
env:
GITSHA: ${{ github.sha }}
# very risky ... because of using the master branch
- name: Push changes
if: ${{ steps.release.outputs.proceed == 'true' }}
uses: ad-m/github-push-action@master
with:
GITHUB_TOKEN${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
- uses: phish108/[email protected]
if: ${{ steps.release.outputs.proceed == 'true' }}
with:
github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
branch: next