Skip to content

Commit

Permalink
Make scope optional and stay on Node 16
Browse files Browse the repository at this point in the history
  • Loading branch information
FraBle authored and Frank Blechschmidt committed Mar 9, 2023
1 parent 891dd92 commit bf26ccb
Show file tree
Hide file tree
Showing 10 changed files with 3,741 additions and 1,847 deletions.
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ module.exports = {
},
],
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars-experimental': 'warn',
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/explicit-function-return-type': 'error',
},
Expand Down
43 changes: 26 additions & 17 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@

name: mondo-eslint-config

name: CI

on:
pull_request:
branches:
- main
paths-ignore:
- 'docs/**'
- '**.md'
push:
branches:
- main
Expand All @@ -9,36 +16,38 @@ on:
- '**.md'
jobs:
verify:
name: Verify build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 12
node-version: 16
- run: npm --silent ci --quiet --no-progress --no-audit --unsafe-perm --loglevel warn
- run: 'npm run audit'
- run: 'npm run lint'
publish:
- run: npm run audit
- run: npm run lint
publish:
name: Publish to NPM
runs-on: ubuntu-latest
if: github.repository == 'MondoPower/codeartifact-auth' && !(github.event_name == 'pull_request')
needs: verify
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 12
node-version: 16
- run: npm --silent ci --quiet --no-progress --no-audit --unsafe-perm --loglevel warn
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public

slackNotification:
needs: publish
if: failure()
name: CodeArtifact Auth CI Notification
slack:
name: Notify Slack on failure
runs-on: ubuntu-latest
if: github.repository == 'MondoPower/codeartifact-auth' && !(github.event_name == 'pull_request') && failure()
needs: publish
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Slack Notification
uses: rtCamp/action-slack-notify@v2
env:
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12.22.4
16
6 changes: 3 additions & 3 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ inputs:
outputs:
status: # success/failure
description: 'If we succeeded or failed to login'
runs:
using: node12
main: './action/action.js'
runs:
using: node16
main: './action/action.js'
60 changes: 33 additions & 27 deletions action/action.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions action/action.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit bf26ccb

Please sign in to comment.