mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-06 12:57:46 +00:00
[tests] Publish with npm@9 (#9583)
https://vercel.slack.com/archives/C04DUD7EB1B/p1676488464681929
This commit is contained in:
5
.github/workflows/publish.yml
vendored
5
.github/workflows/publish.yml
vendored
@@ -16,6 +16,9 @@ jobs:
|
|||||||
publish:
|
publish:
|
||||||
name: Publish
|
name: Publish
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
id-token: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@@ -41,6 +44,8 @@ jobs:
|
|||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 16
|
||||||
|
- name: install npm@9
|
||||||
|
run: npm i -g npm@9
|
||||||
- name: install pnpm@7.24.2
|
- name: install pnpm@7.24.2
|
||||||
run: npm i -g pnpm@7.24.2
|
run: npm i -g pnpm@7.24.2
|
||||||
- name: Install
|
- name: Install
|
||||||
|
|||||||
1
.npmrc
1
.npmrc
@@ -1,3 +1,4 @@
|
|||||||
|
provenance=true
|
||||||
save-exact=true
|
save-exact=true
|
||||||
hoist-pattern[]=!"**/@types/**"
|
hoist-pattern[]=!"**/@types/**"
|
||||||
hoist-pattern[]=!"**/typedoc"
|
hoist-pattern[]=!"**/typedoc"
|
||||||
|
|||||||
1
utils/publish.sh
vendored
1
utils/publish.sh
vendored
@@ -13,6 +13,7 @@ fi
|
|||||||
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
|
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
|
||||||
|
|
||||||
echo "Logged in to npm as: $(npm whoami)"
|
echo "Logged in to npm as: $(npm whoami)"
|
||||||
|
echo "Version of npm is: $(npm --version)"
|
||||||
|
|
||||||
dist_tag=""
|
dist_tag=""
|
||||||
tag="$(git describe --tags --exact-match 2> /dev/null || :)"
|
tag="$(git describe --tags --exact-match 2> /dev/null || :)"
|
||||||
|
|||||||
Reference in New Issue
Block a user