Skip to content

Commit

Permalink
chore: publish package
Browse files Browse the repository at this point in the history
  • Loading branch information
moshloop committed Jan 23, 2024
1 parent 3da1e4a commit 1204c62
Show file tree
Hide file tree
Showing 9 changed files with 5,440 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
icons/
37 changes: 37 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build and Publish

on:
push:
branches: [main]

jobs:
semantic-release:
runs-on: ubuntu-latest
outputs:
release-version: ${{ steps.semantic.outputs.new_release_version }}
new-release-published: ${{ steps.semantic.outputs.new_release_published }}
steps:
- uses: actions/checkout@v3
- uses: cycjimmy/semantic-release-action@v3
id: semantic
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: "14"
registry-url: "https://npm.pkg.github.com"
scope: "@flanksource"
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Publish
run: npm publish
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,4 @@ dist
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
src
Empty file added .npmignore
Empty file.
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
@flanksource:registry=https://npm.pkg.github.com/flanksource
7 changes: 7 additions & 0 deletions babel.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"presets": [
"@babel/preset-env", // Transpile modern JavaScript to be compatible with older browsers
"@babel/preset-react", // Transpile JSX
// "@babel/preset-typescript" // Support TypeScript
]
}
Loading

0 comments on commit 1204c62

Please sign in to comment.