Skip to content

Commit

Permalink
push to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
JBWatenbergScality committed May 29, 2024
1 parent 55775f8 commit f143ffd
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 3 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on:
release:
types:
- published

jobs:
publish-npm:
runs-on: ubuntu-latest
environment: npmjs
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to npmjs.org
- uses: actions/setup-node@v3
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"
- run: npm install
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
29 changes: 29 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: basic tests

on:
push:
branches:
- "user/**"
- "feature/**"
- "improvement/**"
- "bugfix/**"
- "w/**"
- "q/**"
- "hotfix/**"
- "dependabot/**"
pull_request:
types:
- opened

jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install node
uses: actions/setup-node@v2
with:
node-version: "20"
- run: npm ci
- run: npm run build
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.

14 changes: 13 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
{
"name": "@scality/module-federation",
"version": "1.2.2",
"version": "1.2.3",
"description": "",
"main": "build/ModuleFederation.js",
"scripts": {
"build": "tsc",
"prepare": "npm run build",
"test": "jest"
},
"repository": {
"type": "git",
"url": "git+https://github.com/scality/module-federation.git"
},
"author": "",
"license": "SEE LICENSE IN LICENSE",
"bugs": {
"url": "https://github.com/scality/module-federation/issues"
},
"homepage": "https://github.com/scality/module-federation#readme",
"dependencies": {
"@scality/core-ui": "^0.116.0",
"polished": "^4.1.3",
Expand All @@ -28,5 +37,8 @@
"peerDependencies": {
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"publishConfig": {
"access": "public"
}
}

0 comments on commit f143ffd

Please sign in to comment.