Skip to content

Commit

Permalink
feat(rari-npm): add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fiji-flo committed Oct 23, 2024
1 parent 8e596b9 commit 9c7baa4
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 4 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,18 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- run: echo 'This would run npm publish.'
- name: Setup
uses: actions/checkout@v4

- name: Checkout
working-directory: ./rari-npm
uses: actions/setup-node@v4
with:
registry-url: "https://registry.npmjs.org/"
node-version-file: "package.json"

- name: Publish
working-directory: ./rari-npm
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 2 additions & 2 deletions rari-npm/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
node_modules
bin
node_modules/
bin/
4 changes: 4 additions & 0 deletions rari-npm/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# rari on npm

> [!WARNING]
> This is still experimental and work in progress.
7 changes: 6 additions & 1 deletion rari-npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,16 @@
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/mdn/rari"
},
"homepage": "https://github.com/mdn/rari/tree/main/rari-npm",
"scripts": {
"postinstall": "node ./lib/postinstall.js"
},
"bin": {
"rari": "./bin/rari"
"rari": "bin/rari"
},
"author": "Florian Dieminger <[email protected]>",
"license": "MPL-2.0",
Expand Down

0 comments on commit 9c7baa4

Please sign in to comment.