Skip to content

Commit

Permalink
Merge pull request #2 from thewca/development
Browse files Browse the repository at this point in the history
WCA-Components Version 0.4
  • Loading branch information
FinnIckler authored Jun 22, 2023
2 parents 904b7a5 + 2b7285f commit 3cb72c2
Show file tree
Hide file tree
Showing 24 changed files with 1,288 additions and 172 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
name: Node.js Package

on:
release:
types: [created]
push:
branches: [development]

jobs:
build:
Expand All @@ -29,8 +29,8 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org
registry-url: https://npm.pkg.github.com
- run: npm ci
- run: npm publish --access public
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_KEY}}
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
36 changes: 36 additions & 0 deletions .github/workflows/npm-publish-npm-packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Node.js Package

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
- run: npm test

publish-gpr:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org
- run: npm ci
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_KEY}}
2 changes: 1 addition & 1 deletion .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Preview } from '@storybook/react'
import '../src/global.scss'
import 'fomantic-ui-css/semantic.css'
import '../src/global.scss'
const preview: Preview = {
parameters: {
actions: { argTypesRegex: '^on[A-Z].*' },
Expand Down
Loading

0 comments on commit 3cb72c2

Please sign in to comment.