Skip to content

Unpublish npm docs #3602

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
384 commits
Select commit Hold shift + click to select a range
f1e6743
[email protected]
wraithgar Apr 14, 2021
dfcd0c1
[email protected]
wraithgar Apr 13, 2021
58914be
chore(dependencies): resetdeps
wraithgar Apr 14, 2021
f9b639e
feat(bugs): fall back to email if provided
Yash-Singh1 Apr 8, 2021
3b476a2
@npmcl/[email protected]
wraithgar Apr 15, 2021
8c9e247
feat(version): add workspace support
wraithgar Apr 8, 2021
a9ab8d7
docs: changelog for v7.10.0
wraithgar Apr 15, 2021
a4e7f4e
7.10.0
wraithgar Apr 15, 2021
42ca59e
fix(ls): do not exit with error when all problems are extraneous deps
nlf Apr 15, 2021
c93f1c3
chore(docs): update view docs
wraithgar Apr 19, 2021
c4ff4bc
docs: fix refs to ws shorthand
ruyadorno Apr 20, 2021
2aecec5
fix: npm ls --long missing deps
ruyadorno Apr 21, 2021
4c1f16d
feat: add init workspaces
ruyadorno Apr 7, 2021
42e0587
fix(pack): refuse to pack invalid packument
wraithgar Apr 21, 2021
7f82ef5
[email protected]
wraithgar Apr 22, 2021
e02bda6
[email protected]
wraithgar Apr 22, 2021
35e49b9
@npmcli/[email protected]
wraithgar Apr 22, 2021
95faf8c
[email protected]
wraithgar Apr 22, 2021
a0382de
@npmcli/[email protected]
wraithgar Apr 22, 2021
17fffc0
[email protected]
wraithgar Apr 22, 2021
1b5a213
[email protected]
wraithgar Apr 22, 2021
9f83e64
[email protected]
wraithgar Apr 22, 2021
251f788
[email protected]
wraithgar Apr 22, 2021
35873a9
[email protected]
wraithgar Apr 22, 2021
23e12b4
[email protected]
wraithgar Apr 22, 2021
83166eb
[email protected]
wraithgar Apr 22, 2021
1c4eff7
fix(logout): use isBasicAuth attribute
ruyadorno Apr 22, 2021
e5f82f6
chore(dependencies): rebuild package lock
wraithgar Apr 22, 2021
47e24d5
docs: changelog for v7.11.0
wraithgar Apr 22, 2021
231b963
npm prune
wraithgar Apr 22, 2021
9d4cd6c
fixup: ugh
wraithgar Apr 22, 2021
9993a95
chore(dependencies): rebuild package lock
darcyclarke Apr 23, 2021
88f13e8
7.11.0
wraithgar Apr 22, 2021
7925cca
[email protected]
wraithgar Apr 23, 2021
b61eac6
@npmcli/[email protected]
isaacs Apr 23, 2021
c74e67f
[email protected]
isaacs Apr 23, 2021
72a7eeb
Remove --always-auth config definition
isaacs Apr 23, 2021
ecb8cc1
docs for v7.11.1
isaacs Apr 23, 2021
8f8f71e
7.11.1
isaacs Apr 23, 2021
c371f18
ls: do not warn on missing optional deps
isaacs Apr 24, 2021
e479f1d
docs: mention `directories.bin` in `bin`
felipecrs Apr 24, 2021
861f606
fix: make prune rule work on case-senstive file systems
lpinca Apr 27, 2021
fb79d89
[email protected]
nlf Apr 29, 2021
ce38200
@npmcli/[email protected]
nlf Apr 29, 2021
44d3292
docs: changelog for v7.11.2
nlf Apr 29, 2021
593378b
update AUTHORS
nlf Apr 29, 2021
7912cb9
7.11.2
nlf Apr 29, 2021
0faae3f
[email protected]
wraithgar May 6, 2021
3b84a85
[email protected]
wraithgar May 6, 2021
d01ce5e
[email protected]
wraithgar May 6, 2021
81c1dfa
@npmcli/[email protected]
wraithgar May 6, 2021
87c2303
@npmcli/[email protected]
wraithgar May 6, 2021
99ff40d
[email protected]
wraithgar May 6, 2021
701627c
feat(cache): Allow `add` to accept multiple specs
mjsir911 Apr 18, 2021
2c9b871
fix(docs): fix broken links
May 3, 2021
d84b1bd
feat(config): add workspaces boolean to user-agent
nlf May 4, 2021
7773b40
fix(tests): reflect new libnpmexec logic
wraithgar May 6, 2021
3c0dba8
docs: changelog for v7.12.0
wraithgar May 6, 2021
61eea6a
update AUTHORS
wraithgar May 6, 2021
049166b
7.12.0
wraithgar May 6, 2021
e88ac36
[email protected]
wraithgar May 7, 2021
a6a8260
[email protected]
wraithgar May 7, 2021
71ac935
chore(github): Convert md issue template to yaml
May 7, 2021
6fb386d
fix(tests): increase test fuzziness
wraithgar May 6, 2021
de49f58
fix(contributing): link to proper cli repo
mrmlnc May 9, 2021
f9f24d1
[email protected]
wraithgar May 10, 2021
cb9f174
[email protected]
wraithgar May 10, 2021
24b4e4a
[email protected]
wraithgar May 10, 2021
1eb7e5c
@npmcli/[email protected]
wraithgar May 10, 2021
1d09214
fix(packages): locale-agnostic string sorting
isaacs May 6, 2021
285976f
@npmcli/[email protected]
wraithgar May 10, 2021
f3a662f
fix(tests): use config defaults
wraithgar May 7, 2021
0696fca
fix(view): fix non-registry specs
wraithgar May 7, 2021
5514837
[email protected]
wraithgar May 10, 2021
72b1db5
docs: changelog for v7.12.1
wraithgar May 10, 2021
d9c048b
update AUTHORS
wraithgar May 10, 2021
659751f
7.12.1
wraithgar May 10, 2021
0c18e4f
@npmcli/[email protected]
ruyadorno May 13, 2021
b551c68
[email protected]
ruyadorno May 13, 2021
9c46a0a
fix: lint all files in lib/ folder
ruyadorno May 12, 2021
076420c
feat(publish): add workspace support
wraithgar May 11, 2021
370b36a
feat: add fund workspaces
ruyadorno May 12, 2021
00ffe8a
docs: changelog for v7.13.0
ruyadorno May 13, 2021
3bd7583
7.13.0
ruyadorno May 13, 2021
2f5c28a
fix(docs): autogenerate config docs for commands
isaacs May 13, 2021
ec256a1
@npmcli/[email protected]
ruyadorno May 19, 2021
41099d3
feat(explain): add workspaces support
ruyadorno May 19, 2021
0d1a9d7
Add workspaces support to reify/rebuild commands
isaacs May 10, 2021
55f2c2a
chore(tests): tie usage output to snapshots
wraithgar May 14, 2021
faa12cc
fix: search description typo
juanpicado May 15, 2021
fde3546
feat(unpublish): add workspace/dry-run support
wraithgar May 14, 2021
83df366
feat(outdated): add workspaces support
ruyadorno May 18, 2021
63a7635
fix: restore '--json' argument to 'npm pack' command
mrmlnc May 9, 2021
5f15aba
[email protected]
isaacs May 20, 2021
b3add87
[email protected]
isaacs May 20, 2021
c18626f
feat: add ls workspaces
ruyadorno May 14, 2021
c57e4d7
docs: changelog for v7.14.0
ruyadorno May 20, 2021
fa9ac99
update AUTHORS
ruyadorno May 20, 2021
a3f50fd
7.14.0
ruyadorno May 20, 2021
46a9bcb
fix(docs): proper postinstall script file name
KevinFCormier May 21, 2021
83590d4
fix(ls): show relative paths from root
isaacs May 20, 2021
dbbc151
[email protected]
wraithgar May 26, 2021
a574b51
fix(completion): restore IFS even if `npm completion` returns error
NariyasuHeseri May 25, 2021
3c53d63
fix(docs): typo in package-lock.json docs
rethab May 26, 2021
554e8a5
fix: set audit exit code properly
isaacs May 26, 2021
96367f9
docs: rebuild npm-pack doc
isaacs May 26, 2021
399ff8c
feat(link): add workspace support
isaacs May 26, 2021
64b13dd
docs: Drop stale Python 3<->node-gyp remark
spencerwilson May 26, 2021
4a4fbe3
fix(publish): skip private workspaces
ruyadorno May 21, 2021
5b26045
chore(package-lock): update devDependencies
wraithgar May 27, 2021
35c4df0
[email protected]
wraithgar May 27, 2021
b70d797
[email protected]
wraithgar May 27, 2021
7b56bfd
[email protected]
wraithgar May 27, 2021
3d5df00
chore(ci): add input to cli deps pr workflow
May 23, 2021
795cdd6
docs: changelog for v7.15.0
wraithgar May 27, 2021
8fe55b8
update AUTHORS
wraithgar May 27, 2021
97a898d
7.15.0
wraithgar May 27, 2021
685f4be
chore(ci): Move logic in update-npm.sh into GA workflow
May 27, 2021
b4caf28
chore: update deps workflow (#3332)
May 28, 2021
c4fc03e
@npmcli/[email protected]
ruyadorno May 28, 2021
598a17a
fix(libnpmexec): don't detach output from npm
wraithgar May 28, 2021
cf82ea7
fix: refactor get package name
wraithgar May 26, 2021
66b5623
chore: ignore smoke test server file coverage
ruyadorno May 28, 2021
f249e78
[email protected]
ruyadorno May 31, 2021
9159fa6
[email protected]
ruyadorno May 31, 2021
e5799e1
add node16 ci target
ruyadorno May 31, 2021
4a8a180
docs: changelog for v7.15.1
ruyadorno May 31, 2021
b72b82d
update AUTHORS
ruyadorno May 31, 2021
73633e5
7.15.1
ruyadorno May 31, 2021
fb630b5
chore: manage docs as a workspace
ruyadorno Jun 1, 2021
c4ef78b
fix: update incorrect variable name
Jun 1, 2021
e864bd3
fix: do not update notify when installing npm@spec
isaacs Jun 1, 2021
54de5c6
[email protected]
wraithgar Jun 2, 2021
e92b5f2
[email protected]/[email protected]
wraithgar Jun 2, 2021
bc9c57d
chore: update docs npm
Jun 3, 2021
aafe235
fix(update-notifier): parallelize check for updates
isaacs Jun 2, 2021
ca28221
fix(docs): link foreground-scripts w/ loglevel
wraithgar Jun 3, 2021
23c50a4
[email protected]
nlf Jun 3, 2021
ce53a68
docs: changelog for v7.16.0
nlf Jun 3, 2021
fbb7633
7.16.0
nlf Jun 3, 2021
33a31a9
fix: update from upstream (#3363)
Jun 3, 2021
3654890
chore: remove ignored dep
nlf Jun 3, 2021
26d00c4
fix(tests): mock writeFile in pack tests so we dont create 0 byte fil…
nlf Jun 3, 2021
f130a81
fix(linting): add scripts, docs, smoke-tests
wraithgar Jun 4, 2021
a4a0e68
chore: check less stuff into node_modules
isaacs Jun 3, 2021
7d5b049
chore(package) Use a "files" list
isaacs Jun 3, 2021
992799c
fix(login): properly save scope if defined
wraithgar Jun 7, 2021
ef668ab
feat(diff): add workspace support
wraithgar Jun 2, 2021
8442295
docs(workspaces): update using npm section
ruyadorno Jun 9, 2021
26c77f3
[email protected]
wraithgar Jun 10, 2021
70a07d6
docs: changelog for v7.17.0
wraithgar Jun 10, 2021
3f202cd
7.17.0
wraithgar Jun 10, 2021
40829ec
fix(link): do not prune packages
ruyadorno Jun 10, 2021
e5abf2a
chore(libnpmdiff): added as workspace
ruyadorno Jun 7, 2021
c6a8734
chore(refactor): finish passing npm context
wraithgar Jun 7, 2021
102d4e6
fix(workspaces): explicitly error in global mode
wraithgar Jun 15, 2021
993df30
fix(docs): ls command usage instructions
gurdiga Jun 16, 2021
6b951c0
[email protected]
wraithgar Jun 16, 2021
ae285b3
feat(ls): support `--package-lock-only` flag
G-Rath Jun 12, 2021
de820a0
[email protected]
wraithgar Jun 16, 2021
d16ee45
chore(tests): use path.resolve
wraithgar Jun 16, 2021
16a95c6
@npmcli/[email protected]
wraithgar Jun 16, 2021
dcc1366
fix(config): update link definition
wraithgar Jun 15, 2021
d341bd8
[email protected]
wraithgar Jun 17, 2021
b19e56c
fix(ls): respect prod config for workspaces
ruyadorno Jun 16, 2021
c99b8b5
fix(config): add flatOptions.npxCache
wraithgar Jun 16, 2021
c90612c
[email protected]
wraithgar Jun 17, 2021
c984fb5
feat(pack): add pack-destination config
wraithgar Jun 15, 2021
ad641d4
docs: changelog for v7.18.0
lukekarrys Jun 17, 2021
872ea9e
update AUTHORS
lukekarrys Jun 17, 2021
1fb3776
fix(docs): rebuild docs
lukekarrys Jun 17, 2021
699c2d7
7.18.0
lukekarrys Jun 17, 2021
fce30e4
fix(docs): rebuild config docs
wraithgar Jun 17, 2021
5520cb9
docs: changelog for v7.18.1
wraithgar Jun 17, 2021
5ae068a
7.18.1
wraithgar Jun 17, 2021
9bdfbc7
chore: fix version number in changelog
ruyadorno Jun 17, 2021
53f81af
fix(docs): Improve phrasing of workspace example
lumaxis Jun 22, 2021
78da60f
chore(linting): add bin and clean up lib/ls.js
Ivan12273 Jun 22, 2021
54eae30
chore(errorHandler): rename to exit handler
wraithgar Jun 14, 2021
d0f50b1
chore(refactor): async npm.load
wraithgar Jun 21, 2021
87f67d9
chore(tests): expose real mock npm object
wraithgar Jun 23, 2021
400f757
[email protected]
wraithgar Jun 23, 2021
f3dce09
chore(config): snapshot config descriptions
wraithgar Jun 23, 2021
6254b6f
chore: @npmcli/package-json refactor
ruyadorno Jun 22, 2021
23ce3af
feat(ls): report *why* something is invalid
isaacs Jun 23, 2021
dd81d0c
chore(deps): bundle-and-gitignore
wraithgar Jun 24, 2021
fe41383
@npmcli/[email protected]
wraithgar Jun 24, 2021
52ccecd
docs: changelog for v7.19.0
wraithgar Jun 24, 2021
ea62bac
update AUTHORS
wraithgar Jun 24, 2021
cf55fe0
7.19.0
wraithgar Jun 24, 2021
013f026
fix(exitHandler): write code to logfile
wraithgar Jun 25, 2021
0dd0341
fix(ping): make "npm ping" echo a right time
aluneed Jun 28, 2021
d2e298f
fix(deprecate): add undeprecate support
wraithgar Jun 30, 2021
5f8cccc
chore(tests): clean snapshot for lib/view.js tests
wraithgar Jun 30, 2021
9dd32d0
fix(docs): remove npm package config override
wraithgar Jun 30, 2021
a4e0956
fix(docs): remove .hooks scripts
wraithgar Jun 30, 2021
17a44d6
docs: changelog for v7.19.1
wraithgar Jul 1, 2021
cde931b
update AUTHORS
wraithgar Jul 1, 2021
665a7bd
7.19.1
wraithgar Jul 1, 2021
339145f
fix(docs): clarify what install type gets .bins
wraithgar Jul 1, 2021
4755b07
fix: friendlier errors for ERR_SOCKET_TIMEOUT
nlf Jul 1, 2021
74c9975
fix(docs): add npm update example
wraithgar Jul 1, 2021
f17aca5
feat: npm pkg
ruyadorno Jun 28, 2021
3ecf19c
fix(config): fix noproxy
wraithgar Jul 2, 2021
c3bd10e
fix(update-notifier): don't force black background
wraithgar Jul 1, 2021
89483e8
fix(usage): better audit/boolean flag usage output
wraithgar Jul 1, 2021
feeb8e4
fix(publish): obey --ignore-scripts flag
wraithgar Jul 1, 2021
103c8c3
chore(exit): log any un-ended timings
wraithgar Jun 25, 2021
efc4313
chore(refactor): refactor exit handler and tests
wraithgar Jun 29, 2021
d8eb49b
fix(bundle-and-ignore): case sensitivity cleanup
wraithgar Jul 13, 2021
801a523
fix(docs): correct Node.js JavaScript stylings
relrelb Jul 13, 2021
98905ae
feat(config): introduce 'location' parameter
nlf Jun 26, 2021
8371d7d
feat(pkg): add support to empty bracket syntax
ruyadorno Jul 12, 2021
c11aa53
chore: use better name on nodejs commits
ruyadorno Jul 13, 2021
7914167
Instructions for seeing background script output
cinderblock Jul 14, 2021
691816f
@npmcli/[email protected]
ruyadorno Jul 15, 2021
ba89b1c
fix: removed unused arb-target-or
ruyadorno Jul 15, 2021
b9597e9
[email protected]
ruyadorno Jul 15, 2021
f573e7c
[email protected]
ruyadorno Jul 15, 2021
2d5797e
[email protected]
ruyadorno Jul 15, 2021
5bb1e04
[email protected]
ruyadorno Jul 15, 2021
8b1a12e
update gitignore file
ruyadorno Jul 15, 2021
5a305c7
fix(docs): add missing npm pkg to nav.yml
ruyadorno Jul 15, 2021
293a4c7
docs: changelog for v7.20.0
ruyadorno Jul 15, 2021
ecfc9e1
update AUTHORS
ruyadorno Jul 15, 2021
1a2159d
7.20.0
ruyadorno Jul 15, 2021
b6e0997
chore: remove ignored files from node_modules
ruyadorno Jul 15, 2021
a014f3d
fix(docs): typo in `npm cmd` docs
wraithgar Jul 20, 2021
1fe1c9b
fix(docs): updated policy urls
demiracl Jul 7, 2021
009ad1e
fix(exit-handler): always warn if not called
wraithgar Jul 20, 2021
eb67054
fix(config): consolidate use of npm.color
wraithgar Jul 20, 2021
d7f29e8
[email protected]
wraithgar Jul 22, 2021
8dc74de
[email protected]
wraithgar Jul 22, 2021
b1fefa7
[email protected]
wraithgar Jul 22, 2021
cf737c5
[email protected]
wraithgar Jul 22, 2021
bd715ca
[email protected]
wraithgar Jul 22, 2021
f8dbad3
docs: changelog for v7.20.1
wraithgar Jul 22, 2021
6eb6e11
update AUTHORS
wraithgar Jul 22, 2021
deeb222
7.20.1
wraithgar Jul 22, 2021
ced8508
[email protected]
wraithgar Jul 26, 2021
f5aab1f
[email protected]
wraithgar Jul 26, 2021
ce8fb0f
[email protected]
wraithgar Jul 27, 2021
47526ce
docs: changelog for v7.20.2
wraithgar Jul 27, 2021
f9381de
7.20.2
wraithgar Jul 27, 2021
99575ac
fix(node_modules): remove duplicated file
wraithgar Jul 28, 2021
97cb5ec
@npmcli/[email protected]
isaacs Jul 27, 2021
66dc5f9
fix: update eresolve explanations for new arborist data provided
isaacs Jul 28, 2021
7db1a0a
chore(deps): [email protected] [email protected]
wraithgar Jul 29, 2021
29de07a
docs: changelog for v7.20.3
wraithgar Jul 29, 2021
e7e1181
7.20.3
wraithgar Jul 29, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
35 changes: 0 additions & 35 deletions .github/ISSUE_TEMPLATE/bug_7.md

This file was deleted.

49 changes: 49 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_7.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: 🐞 Bug v7
description: File a bug/issue against v7.x
title: "[BUG] <title>"
labels: [Bug, Needs Triage, Release 7.x]
body:
- type: checkboxes
attributes:
label: Is there an existing issue for this?
description: Please [search here](https://github.com/npm/cli/issues) to see if an issue already exists for your problem.
options:
- label: I have searched the existing issues
required: true
- type: textarea
attributes:
label: Current Behavior
description: A clear & concise description of what you're experiencing.
validations:
required: false
- type: textarea
attributes:
label: Expected Behavior
description: A clear & concise description of what you expected to happen.
validations:
required: false
- type: textarea
attributes:
label: Steps To Reproduce
description: Steps to reproduce the behavior.
value: |
1. In this environment...
2. With this config...
3. Run '...'
4. See error...
validations:
required: false
- type: textarea
attributes:
label: Environment
description: |
examples:
- **OS**: Ubuntu 20.04
- **Node**: 13.14.0
- **npm**: 7.6.3
value: |
- OS:
- Node:
- npm:
validations:
required: false
85 changes: 84 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,94 @@ jobs:
- name: Run linting
run: node . run licenses

smoke-tests:
strategy:
fail-fast: false
matrix:
node-version: [10.x, 12.x, 14.x, 16.x]
platform:
- os: ubuntu-latest
shell: bash
- os: macos-latest
shell: bash
- os: windows-latest
shell: bash
- os: windows-latest
shell: powershell

runs-on: ${{ matrix.platform.os }}
defaults:
run:
shell: ${{ matrix.platform.shell }}

steps:
# Checkout the npm/cli repo
- uses: actions/checkout@v2

# Installs the specific version of Node.js
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

# Run the installer script
- name: Install dependencies
run: |
node . install --ignore-scripts --no-audit
node . rebuild

# Run the smoke tests
- name: Run Smoke tests
run: node . run --ignore-scripts smoke-tests -- --no-check-coverage -t600 -Rbase -c
env:
DEPLOY_VERSION: testing

workspaces-tests:
strategy:
fail-fast: false
matrix:
node-version: [10.x, 12.x, 14.x, 16.x]
platform:
- os: ubuntu-latest
shell: bash
- os: macos-latest
shell: bash
- os: windows-latest
shell: bash
- os: windows-latest
shell: powershell

runs-on: ${{ matrix.platform.os }}
defaults:
run:
shell: ${{ matrix.platform.shell }}

steps:
# Checkout the npm/cli repo
- uses: actions/checkout@v2

# Installs the specific version of Node.js
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

# Run the installer script
- name: Install dependencies
run: |
node . install --ignore-scripts --no-audit
node . rebuild

- name: Run workspaces tests
run: node . test -w ./packages -- --no-check-coverage -t600 -Rbase -c
env:
DEPLOY_VERSION: testing

build:
strategy:
fail-fast: false
matrix:
node-version: ['10.1', 10.x, '12.1', 12.x, '14.1', 14.x]
node-version: ['10.1', 10.x, '12.1', 12.x, '14.1', 14.x, '16.1', 16.x]
platform:
- os: ubuntu-latest
shell: bash
Expand Down
89 changes: 89 additions & 0 deletions .github/workflows/create-cli-deps-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: "Create CLI Deps PR"

on:
workflow_dispatch:
inputs:
npmVersion:
description: "6.x.x or latest"
required: true
default: 'latest'


jobs:
create-pull-request:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.NPM_ROBOT_USER_PAT }}
NPM_VERSION: ${{ github.event.inputs.npmVersion }}
SUPPORT_BRANCH: "v14.x-staging"
steps:
- name: Update gh cli & install jq parser
run: |
sudo apt-get update -y
sudo apt update
sudo apt-get install -y jq
sudo apt install gh
- name: Checkout npm/node
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: master
repository: "npm/node"
token: ${{ secrets.NPM_ROBOT_USER_PAT }}
- name: Pull (Fast-Forward) upstream
id: sync
uses: aormsby/[email protected]
with:
upstream_repository: nodejs/node
upstream_branch: master
target_branch: master
git_pull_args: --ff-only # optional arg use, defaults to simple 'pull'
github_token: ${{ secrets.NPM_ROBOT_USER_PAT }} # optional, for accessing repos that require authentication
- name: Run dependency updates and create PR
run: |
npm_tag=""
base_branch=""
if [ "$NPM_VERSION" == "latest" ]
then
npm_tag=`npm view npm@latest version`
base_branch="master"
else
npm_tag="$NPM_VERSION"
base_branch="v14.x-staging"
fi

git config user.name "npm team"
git config user.email "[email protected]"
git checkout -b "npm-$npm_tag"

BASE_DIR="$( pwd )"/
DEPS_DIR="$BASE_DIR"deps/

echo "Cloning CLI repo"
gh repo clone npm/cli

echo "Prepping CLI repo for release"
cd cli
git checkout v"$npm_tag"
make
make release


echo "Removing old npm"
cd "$DEPS_DIR"
rm -rf npm/

echo "Copying new npm"
tar zxf "$BASE_DIR"cli/release/npm-"$npm_tag".tgz

echo "Removing CLI workspace"
cd "$BASE_DIR"
rm -rf cli

git add -A deps/npm
git commit -m "deps: upgrade npm to $npm_tag"
git rebase --whitespace=fix master
git push origin "npm-$npm_tag"
gh_release_body=`gh release view v"$npm_tag" -R npm/cli --json body | jq -r '.body'`

gh pr create -R "nodejs/node" -B "$base_branch" -H "npm:npm-$npm_tag" --title "deps: upgrade npm to $npm_tag" --body "$gh_release_body"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ npm-debug.log
/coverage
/*.tgz
/.editorconfig
.vscode/
31 changes: 0 additions & 31 deletions .npmignore

This file was deleted.

34 changes: 34 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -755,3 +755,37 @@ Ikko Ashimine <[email protected]>
MrBrain295 <[email protected]>
kumavis <[email protected]>
Christof Lemke <[email protected]>
Nathan Shively-Sanders <[email protected]>
Bjørn Johansen <[email protected]>
Fraqe <[email protected]>
Edward Grech <[email protected]>
Kenrick <[email protected]>
Karthik Sundari <[email protected]>
Jan Sepke <[email protected]>
Augusto Moura <[email protected]>
Eric Chow <[email protected]>
kbayrhammer <[email protected]>
James Chen-Smith <[email protected]>
Yash Singh <[email protected]>
Danielle Church <[email protected]>
Seth Thomas <[email protected]>
Andreas <[email protected]>
Felipe Santos <[email protected]>
Luigi Pinca <[email protected]>
Marco Sirabella <[email protected]>
wangsai <[email protected]>
Luke Hefson <[email protected]>
mrmlnc <[email protected]>
Juan Picado <[email protected]>
Kevin Cormier <[email protected]>
Nariyasu Heseri <[email protected]>
rethab <[email protected]>
Spencer Wilson <[email protected]>
Daniel Park <[email protected]>
Daniel Park <[email protected]>
Luke Karrys <[email protected]>
Ivan <[email protected]>
Aluneed <[email protected]>
relrelb <[email protected]>
Cameron Tacklind <[email protected]>
Demira Dimitrova <[email protected]>
Loading