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:
parent
0b10676c4f
commit
cbfa3411b3
3 changed files with 8 additions and 2 deletions
6
.github/workflows/npm-pub.yml
vendored
6
.github/workflows/npm-pub.yml
vendored
|
@ -11,6 +11,9 @@ jobs:
|
||||||
eslint-config:
|
eslint-config:
|
||||||
name: 'Publish eslint-config to npm'
|
name: 'Publish eslint-config to npm'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
id-token: write
|
||||||
if: contains(github.ref_name, 'eslint-config@')
|
if: contains(github.ref_name, 'eslint-config@')
|
||||||
steps:
|
steps:
|
||||||
- name: 'Checkout'
|
- name: 'Checkout'
|
||||||
|
@ -32,6 +35,9 @@ jobs:
|
||||||
prettier-config:
|
prettier-config:
|
||||||
name: 'Publish prettier-config to npm'
|
name: 'Publish prettier-config to npm'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
id-token: write
|
||||||
if: contains(github.ref_name, 'prettier-config@')
|
if: contains(github.ref_name, 'prettier-config@')
|
||||||
steps:
|
steps:
|
||||||
- name: 'Checkout'
|
- name: 'Checkout'
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
],
|
],
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/revi/sandbox.git",
|
"url": "git+https://github.com/revi/sandbox.git",
|
||||||
"directory": "npm/eslint-config"
|
"directory": "npm/eslint-config"
|
||||||
},
|
},
|
||||||
"author": {
|
"author": {
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/revi/sandbox.git",
|
"url": "git+https://github.com/revi/sandbox.git",
|
||||||
"directory": "npm/prettier-config"
|
"directory": "npm/prettier-config"
|
||||||
},
|
},
|
||||||
"bugs": {
|
"bugs": {
|
||||||
|
|
Loading…
Reference in a new issue