Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
Add npm publish information
Browse files Browse the repository at this point in the history
Publish the package privately to only robocorp organization.
  • Loading branch information
mmokko committed Nov 16, 2023
1 parent e97fa6a commit a77845b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/publish-node.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Publish Node Addon

on: [push]
on:
push:
tags:
- 'v*'

jobs:
build:
Expand Down Expand Up @@ -53,7 +56,8 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: '18'
registry-url: 'https://npm.pkg.github.com'
registry-url: 'https://npm.pkg.github.com/'
scope: '@robocorp'

- name: Download all artifacts
uses: actions/download-artifact@v2
Expand All @@ -70,4 +74,4 @@ jobs:
- name: Publish to GitHub Packages
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions package-lock.json

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

9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
{
"name": "native-certs",
"name": "@robocorp/native-certs",
"version": "0.1.0",
"description": "",
"main": "index.node",
"module": "index.node",
"publishConfig": {
"access": "restricted"
},
"files": [
"target"
],
"scripts": {
"build": "cargo-cp-artifact -nc index.node -- cargo build --message-format=json-render-diagnostics",
"build-debug": "npm run build --",
Expand Down

0 comments on commit a77845b

Please sign in to comment.