-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b0c935
commit 5642d75
Showing
8 changed files
with
103 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,37 @@ | ||
name: 'Build Icons' | ||
description: 'Build Icons' | ||
name: 'PNPM & Turbo Cache' | ||
description: 'PNPM & Turbo Cache' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Remove .npmrc | ||
run: rm .npmrc | ||
shell: bash | ||
- uses: pnpm/action-setup@v2 | ||
name: Install pnpm | ||
with: | ||
version: 8 | ||
run_install: false | ||
|
||
- uses: actions/setup-node@v3 | ||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
registry-url: 'https://registry.npmjs.org' | ||
scope: '@siemens' | ||
node-version: 18 | ||
cache: 'pnpm' | ||
|
||
- name: configure yarnrc | ||
- name: Get pnpm store directory | ||
run: | | ||
echo 'yarn-offline-mirror ".yarn-cache/"' >> .yarnrc | ||
echo 'yarn-offline-mirror-pruning true' >> .yarnrc | ||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | ||
shell: bash | ||
|
||
- uses: actions/cache@v2 | ||
id: cache | ||
- uses: actions/cache@v3 | ||
name: Setup pnpm cache | ||
with: | ||
path: ./node_modules | ||
key: yarn-${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }} | ||
path: ${{ env.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: install | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: yarn install --frozen-lockfile --no-progress | ||
- name: Install dependencies | ||
run: pnpm install | ||
shell: bash | ||
|
||
- name: build | ||
run: yarn build | ||
shell: bash | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: dist | ||
path: | | ||
dist | ||
- name: Build | ||
run: pnpm build --cache-dir=.turbo |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,30 @@ | ||
name: publish | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+' | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: publish-${{ github.sha }} | ||
cancel-in-progress: true | ||
concurrency: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
jobs: | ||
build: | ||
release: | ||
if: ${{ github.repository == 'siemens/ix-icons' }} | ||
name: Release | ||
runs-on: ubuntu-latest | ||
container: | ||
image: node:16.16.0 | ||
env: | ||
DEBIAN_FRONTEND: noninteractive | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- uses: ./.github/workflows/actions/build | ||
- name: Publish to npmjs.org | ||
run: yarn publish --access public | ||
|
||
- name: Create Release Pull Request or Publish to npm | ||
id: changesets | ||
uses: changesets/action@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
with: | ||
publish: pnpm ci:publish --publish-branch ${{ github.ref_name }} | ||
version: pnpm ci:version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -158,7 +158,5 @@ export async function resolveIcon(iconName: string) { | |
} | ||
} | ||
|
||
console.log('old'); | ||
|
||
return getESMIcon(iconName); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters