Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Publish as NPM package #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name : Publish system packages to registry
name: Publish system packages to registry
on:
release:
types: [published]
Expand All @@ -22,4 +22,16 @@ jobs:
run: |
mkdir -p ~/.wally
echo "$WALLY_AUTH" > ~/.wally/auth.toml
wally publish
wally publish

- uses: actions/setup-node@v3
with:
node-version: "16.x"
registry-url: "https://npm.pkg.github.com"
# Defaults to the user or organization that owns the workflow file
scope: "@octocat"

- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
13 changes: 13 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "mockdatastoreservice",
"version": "1.0.0",
"description": "Emulation of Roblox's DataStoreService for seamless offline development & testing",
"keywords": [
"Roblox",
"Nevermore",
"Lua",
"DataStore"
],
"license": "Apache 2.0",
"publishConfig": {
"access": "public"
}
}