CI(GitHub Actions): fix npm-pub.yml to publish correctly

Summary:
Fix P185 failure.

Also fix L1 (`npm pkg fix`) for (eslint|prettier)-config.

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: `arc lint`, and push tag again

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D358
This commit is contained in:
revi 2024-06-18 19:21:43 +09:00
parent 0b10676c4f
commit cbfa3411b3
Signed by: revi
GPG key ID: 1EB4F6CEEA100E94
3 changed files with 8 additions and 2 deletions

View file

@ -11,6 +11,9 @@ jobs:
eslint-config:
name: 'Publish eslint-config to npm'
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
if: contains(github.ref_name, 'eslint-config@')
steps:
- name: 'Checkout'
@ -32,6 +35,9 @@ jobs:
prettier-config:
name: 'Publish prettier-config to npm'
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
if: contains(github.ref_name, 'prettier-config@')
steps:
- name: 'Checkout'

View file

@ -23,7 +23,7 @@
],
"repository": {
"type": "git",
"url": "https://github.com/revi/sandbox.git",
"url": "git+https://github.com/revi/sandbox.git",
"directory": "npm/eslint-config"
},
"author": {

View file

@ -20,7 +20,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/revi/sandbox.git",
"url": "git+https://github.com/revi/sandbox.git",
"directory": "npm/prettier-config"
},
"bugs": {