Skip to content

Commit cf65abb

Browse files
committed
revert back to .nox-session base action
1 parent 599af39 commit cf65abb

File tree

2 files changed

+15
-28
lines changed

2 files changed

+15
-28
lines changed

Diff for: .github/workflows/.nox-session.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ on:
2121
type: string
2222
default: '["3.x"]'
2323
secrets:
24-
NODE_AUTH_TOKEN:
24+
node-auth-token:
2525
required: false
26-
PYPI_USERNAME:
26+
pypi-username:
2727
required: false
28-
PYPI_PASSWORD:
28+
pypi-password:
2929
required: false
3030

3131
jobs:
@@ -42,7 +42,7 @@ jobs:
4242
with:
4343
node-version: "14.x"
4444
- name: Pin NPM Version
45-
run: npm install -g [email protected]
45+
run: npm install -g npm@8.19.3
4646
- name: Use Python ${{ matrix.python-version }}
4747
uses: actions/setup-python@v2
4848
with:
@@ -51,7 +51,7 @@ jobs:
5151
run: pip install -r requirements/nox-deps.txt
5252
- name: Run Sessions
5353
env:
54-
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
55-
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
56-
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
54+
NODE_AUTH_TOKEN: ${{ secrets.node-auth-token }}
55+
PYPI_USERNAME: ${{ secrets.pypi-username }}
56+
PYPI_PASSWORD: ${{ secrets.pypi-password }}
5757
run: nox ${{ inputs.nox-args }} --stop-on-first-error -- ${{ inputs.nox-session-args }}

Diff for: .github/workflows/publish.yml

+8-21
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,11 @@ on:
99

1010
jobs:
1111
publish:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v2
15-
- uses: actions/setup-node@v2
16-
with:
17-
node-version: "14.x"
18-
registry-url: "https://registry.npmjs.org"
19-
- name: Pin NPM Version
20-
run: npm install -g [email protected]
21-
- name: Use Python ${{ matrix.python-version }}
22-
uses: actions/setup-python@v2
23-
with:
24-
python-version: ${{ matrix.python-version }}
25-
- name: Install Python Dependencies
26-
run: pip install -r requirements/nox-deps.txt
27-
- name: Run Sessions
28-
env:
29-
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
30-
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
31-
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
32-
run: nox -s publish
12+
uses: ./.github/workflows/.nox-session.yml
13+
with:
14+
job-name: "publish"
15+
nox-args: "-s publish"
16+
secrets:
17+
node-auth-token: ${{ secrets.NODE_AUTH_TOKEN }}
18+
pypi-username: ${{ secrets.PYPI_USERNAME }}
19+
pypi-password: ${{ secrets.PYPI_PASSWORD }}

0 commit comments

Comments
 (0)