Skip to content

Commit 4bafdb3

Browse files
committed
chore: add workflows
1 parent 78323f0 commit 4bafdb3

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Publish Package
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
contents: read
10+
packages: write
11+
steps:
12+
- uses: actions/checkout@v2
13+
# Setup .npmrc file to publish to GitHub Packages
14+
- uses: actions/setup-node@v2
15+
with:
16+
node-version: '14.x'
17+
registry-url: 'https://npm.pkg.github.com'
18+
# Defaults to the user or organization that owns the workflow file
19+
scope: '@spookfish-ai'
20+
- run: yarn
21+
- run: yarn publish
22+
env:
23+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.npmrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}
2+
@spookfish-ai:registry=https://npm.pkg.github.com
3+
always-auth=true

package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
{
2-
"name": "@kenai/antd-css-resolver",
2+
"name": "@spookfish-ai/antd-css-resolver",
33
"version": "1.0.1",
44
"description": "Dynamically generate ant.design styles from an api route",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
77
"private": true,
8+
"publishConfig": {
9+
"registry": "https://npm.pkg.github.com"
10+
},
11+
"repository": {
12+
"type": "git",
13+
"url": "https://github.com/Spookfish-ai/antd-css-resolver.git"
14+
},
815
"files": [
916
"dist/index.js",
1017
"dist/index.d.ts",

0 commit comments

Comments
 (0)