Skip to content

Commit

Permalink
update config
Browse files Browse the repository at this point in the history
  • Loading branch information
hipstersmoothie committed Mar 2, 2023
1 parent 6731406 commit 81ddd31
Showing 1 changed file with 31 additions and 45 deletions.
76 changes: 31 additions & 45 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,53 +2,39 @@ name: Node CI

on: [push]

# Enabled permissions on GITHUB_TOKEN
permissions:
# To be able to push to the repo
contents: write
# To update the pr description with canary info
pull-requests: write
# For pr-check to create a status
statuses: write
# Needed to create PR statuses/checks
checks: write
# To post comments on PRs
issues: write

jobs:
build:
release:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
steps:
- uses: actions/checkout@v2

strategy:
matrix:
node-version: [10.x, 12.x]
- name: Prepare repository
run: git fetch --unshallow --tags

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and lint
run: |
yarn
yarn build
yarn lint
release:
runs-on: ubuntu-latest
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14.x

steps:
- uses: actions/checkout@v1
- name: Skip CI
uses: veggiemonk/skip-commit@master
env:
COMMIT_FILTER: skip ci
- name: Prepare repository
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
git checkout "${GITHUB_REF:11}"
git remote rm origin
git remote add origin "https://[email protected]/hipstersmoothie/eslint-formatter-github.git"
git fetch origin
git branch --set-upstream-to origin/master
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Create Release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
git remote -v
yarn
yarn build
yarn release
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
yarn
yarn build
yarn release

0 comments on commit 81ddd31

Please sign in to comment.