Skip to content

Commit 46464cd

Browse files
committed
Revert "Support installing private packages"
This reverts commit c5ce4c6.
1 parent 6dbf6ed commit 46464cd

File tree

12 files changed

+7
-51
lines changed

12 files changed

+7
-51
lines changed

.devcontainer/Dockerfile

-2
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,3 @@ RUN mkdir -p .config/git \
99
&& echo ".vscode/*" >> .config/git/ignore \
1010
&& echo "*.code-workspace" >> .config/git/ignore \
1111
&& echo ".history/" >> .config/git/ignore
12-
13-
RUN echo '//npm.pkg.github.com/:_authToken=${GH_TOKEN}' > .npmrc

.github/actions/setup/action.yml

+2-16
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,14 @@ name: Setup
33
description: Setup Node.js and install dependencies.
44

55
inputs:
6-
node_auth_token:
7-
description: The Node.js auth token.
8-
required: true
96
node_version:
107
description: The Node.js version.
118
required: false
129
default: '18'
1310
registry_url:
1411
description: The Node.js package registry URL.
1512
required: false
16-
default: https://npm.pkg.github.com
13+
default: https://registry.npmjs.org
1714
install_dependencies:
1815
description: Install dependencies.
1916
required: false
@@ -38,15 +35,4 @@ runs:
3835
- name: Install dependencies
3936
if: inputs.install_dependencies == 'true'
4037
shell: bash
41-
run: npm ci --ignore-scripts
42-
env:
43-
NODE_AUTH_TOKEN: ${{ inputs.node_auth_token }}
44-
- name: Rebuild Node.js modules
45-
shell: bash
46-
run: npm rebuild
47-
- name: Run postinstall script
48-
shell: bash
49-
run: npm run postinstall --if-present
50-
- name: Run prepare script
51-
shell: bash
52-
run: npm run prepare --if-present
38+
run: npm ci

.github/workflows/_build.yml

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ jobs:
2626
uses: ./.github/actions/setup
2727
with:
2828
node_version: ${{ inputs.node_version }}
29-
node_auth_token: ${{ secrets.GH_TOKEN }}
3029
- name: Build
3130
run: npm run build
3231
- name: Package

.github/workflows/_publish.yml

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ jobs:
2929
uses: ./.github/actions/setup
3030
with:
3131
install_dependencies: 'false'
32-
node_auth_token: ${{ secrets.GH_TOKEN }}
3332
- name: Download artifact
3433
uses: actions/download-artifact@v3
3534
with:

.github/workflows/check.yml

+1-17
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ jobs:
3535
uses: ./.github/actions/setup
3636
with:
3737
node_version: ${{ matrix.node }}
38-
node_auth_token: ${{ secrets.GH_TOKEN }}
3938
- name: Test
4039
run: npm test
4140
lint:
@@ -55,7 +54,6 @@ jobs:
5554
uses: ./.github/actions/setup
5655
with:
5756
node_version: ${{ matrix.node }}
58-
node_auth_token: ${{ secrets.GH_TOKEN }}
5957
- name: Lint
6058
run: npm run lint
6159
build:
@@ -113,18 +111,7 @@ jobs:
113111
contents: |
114112
import '@seamapi/makenew-tsmodule'
115113
- name: Install
116-
run: npm install --ignore-scripts --save ${{ steps.packages.outputs.paths }}
117-
env:
118-
NODE_AUTH_TOKEN: ${{ secrets.GH_TOKEN }}
119-
- name: Rebuild Node.js modules
120-
shell: bash
121-
run: npm rebuild
122-
- name: Run postinstall script
123-
shell: bash
124-
run: npm run postinstall --if-present
125-
- name: Run prepare script
126-
shell: bash
127-
run: npm run prepare --if-present
114+
run: npm install --save ${{ steps.packages.outputs.paths }}
128115
- name: Run
129116
run: node index.js
130117
typecheck:
@@ -144,7 +131,6 @@ jobs:
144131
uses: ./.github/actions/setup
145132
with:
146133
node_version: ${{ matrix.node }}
147-
node_auth_token: ${{ secrets.GH_TOKEN }}
148134
- name: Check types
149135
run: npm run typecheck
150136
dependencies:
@@ -156,7 +142,5 @@ jobs:
156142
uses: actions/checkout@v3
157143
- name: Setup
158144
uses: ./.github/actions/setup
159-
with:
160-
node_auth_token: ${{ secrets.GH_TOKEN }}
161145
- name: Analyze dependencies
162146
run: npm run dependencies

.github/workflows/format.yml

-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ jobs:
2929
passphrase: ${{ secrets.GPG_PASSPHRASE }}
3030
- name: Setup
3131
uses: ./.github/actions/setup
32-
with:
33-
node_auth_token: ${{ secrets.GH_TOKEN }}
3432
- name: Format
3533
run: npm run format
3634
- name: Commit

.github/workflows/generate.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ jobs:
3232
with:
3333
install_dependencies: 'false'
3434
- name: Normalize package-lock.json
35-
run: npm install --ignore-scripts
36-
env:
37-
NODE_AUTH_TOKEN: ${{ secrets.GH_TOKEN }}
35+
run: npm install
3836
- name: Commit
3937
uses: stefanzweifel/git-auto-commit-action@v4
4038
with:

.github/workflows/version.yml

-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,5 @@ jobs:
3131
passphrase: ${{ secrets.GPG_PASSPHRASE }}
3232
- name: Setup
3333
uses: ./.github/actions/setup
34-
with:
35-
node_auth_token: ${{ secrets.GH_TOKEN }}
3634
- name: Cut ${{ github.event.inputs.version }} version
3735
run: npm version --sign-git-tag=true ${{ github.event.inputs.version }}

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ package
2222
.tern-port
2323

2424
# npm config
25-
# .npmrc
25+
.npmrc
2626

2727
# Temporary development files
2828
tmp

.npmrc

-1
This file was deleted.

README.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ Bootstrap a new TypeScript module in five minutes or less.
1414
- Strongly typed JavaScript with [TypeScript].
1515
- Native [ECMAScript module] compatible with [Node.js].
1616
- Package management with [npm].
17-
- Use private packages from [GitHub Packages].
1817
- Publish as a package to [GitHub Packages] and [npm].
1918
- Examples with configurable options and arguments powered by [yargs] with [landlubber].
2019
- Linting with the [JavaScript Standard Style] using [ESLint].
@@ -161,8 +160,7 @@ Set the active version for each shell session with
161160
$ nvm use
162161
```
163162

164-
Ensure you are authenticated with the [GitHub Packages npm registry],
165-
then install the development dependencies with
163+
Install the development dependencies with
166164

167165
```
168166
$ npm install
@@ -172,7 +170,6 @@ $ npm install
172170
[Node.js debugging]: https://nodejs.org/en/docs/guides/debugging-getting-started/
173171
[npm]: https://www.npmjs.com/
174172
[nvm]: https://github.com/creationix/nvm
175-
[GitHub Packages npm registry]: https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry#authenticating-to-github-packages
176173

177174
### Publishing
178175

makenew.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ makenew () {
5555
read -p '> Short package description (Foos and bars.): ' mk_description
5656
read -p '> GitHub repository name (my-repo): ' mk_repo
5757

58-
sed_delete README.md '10,104d'
58+
sed_delete README.md '10,103d'
5959
sed_insert README.md '10i' 'TODO'
6060

6161
find_replace "s/^ \"version\": \".*\"/ \"version\": \"0.0.0\"/g"

0 commit comments

Comments
 (0)