Skip to content

Commit 599af39

Browse files
committed
simplify publish action
1 parent 3d6e501 commit 599af39

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

.github/workflows/publish.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,24 @@ on:
99

1010
jobs:
1111
publish:
12-
uses: ./.github/workflows/.nox-session.yml
13-
with:
14-
job-name: "publish"
15-
nox-args: "-s publish"
16-
secrets: inherit
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 npm@8.19.3
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

0 commit comments

Comments
 (0)