Skip to content

Commit 8957a1c

Browse files
author
Akshit Batra
committed
initial commit
0 parents  commit 8957a1c

9 files changed

+1596
-0
lines changed

.eslintrc.json

Whitespace-only changes.

.github/workflows/publish-package.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Publish to GitHub Packages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
packages: write
14+
attestations: write
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v2
19+
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v2
22+
with:
23+
node-version: '20'
24+
registry-url: 'https://npm.pkg.github.com'
25+
26+
- name: Configure npm for GitHub Packages
27+
run: |
28+
npm config set @building-for-fun:registry https://npm.pkg.github.com
29+
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
30+
- name: Install dependencies
31+
run: npm install
32+
33+
- name: Publish package
34+
run: npm publish
35+
env:
36+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/
2+
dist/

.prettierrc

Whitespace-only changes.

0 commit comments

Comments
 (0)