Skip to content

Commit

Permalink
setup ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
vaporvee committed May 15, 2024
1 parent d561dc2 commit c0e668f
Show file tree
Hide file tree
Showing 17 changed files with 42 additions and 7,182 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: npm Publish to GitHub Package Registry

on:
push:
branches: main

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write # allow GITHUB_TOKEN to publish packages
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "20"
- run: npm ci
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
registry: "https://npm.pkg.github.com"
17 changes: 17 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: npm Publish
on:
push:
branches: main

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "20"
- run: npm ci
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NODE_AUTH_TOKEN }}
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}
registry=https://registry.npmjs.org/
always-auth=true
Binary file modified README.md
Binary file not shown.
24 changes: 0 additions & 24 deletions test/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions test/.vscode/extensions.json

This file was deleted.

11 changes: 0 additions & 11 deletions test/.vscode/launch.json

This file was deleted.

54 changes: 0 additions & 54 deletions test/README.md

This file was deleted.

4 changes: 0 additions & 4 deletions test/astro.config.mjs

This file was deleted.

Loading

0 comments on commit c0e668f

Please sign in to comment.