Skip to content

Commit 2ff54e3

Browse files
committed
ci: create release before publisching an NPM package
1 parent 4552f15 commit 2ff54e3

File tree

3 files changed

+11
-19
lines changed

3 files changed

+11
-19
lines changed

.github/workflows/release-and-deploy.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,18 @@ jobs:
4242
run: >
4343
nix develop -c
4444
npm run docs
45-
- name: Publish NPM package
46-
env:
47-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48-
run: >
49-
nix develop -c
50-
npm publish --access public
5145
- name: Create a GitHub release
5246
env:
5347
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5448
run: >
5549
nix develop -c
5650
npm run release -- --ci
51+
- name: Publish NPM package
52+
env:
53+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
run: >
55+
nix develop -c
56+
npm publish --access public
5757
- name: Deploy to GitHub Pages
5858
uses: peaceiris/actions-gh-pages@v3
5959
with:

docs.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)