Skip to content

Commit

Permalink
test publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
thelukewalton committed Mar 3, 2025
1 parent 87d1bbd commit bf47639
Show file tree
Hide file tree
Showing 10 changed files with 269 additions and 158 deletions.
10 changes: 10 additions & 0 deletions .github/get_changed_icons/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: "Get Changed Icons (on-release)"
description: "Gets icons that have changed from the contents of the changelog"

outputs:
body:
description: "The comment to be added to the PR"

runs:
using: "node20"
main: "index.js"
5 changes: 5 additions & 0 deletions .github/get_changed_icons/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { parseChangeLogForIconChanges } from '../../dist/scripts/on-release/get-changed-icons'
import core from "@actions/core";

const comment = parseChangeLogForIconChanges();
core.setOutput('body', comment);
69 changes: 45 additions & 24 deletions .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,42 +6,63 @@ on:
workflow_dispatch:

jobs:
publish:
name: Publish to NPM
get_changed_icons:
name: Get changed icons
runs-on: ubuntu-latest
outputs:
BODY: ${{ steps.get-changed-icons.outputs.body }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{github.ref_name}}
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: "https://registry.npmjs.org"
- name: Install packages
run: npm ci
- name: Compile Typescript files
run: tsc
- name: Dry run
run: npx figma connect publish --dry-run --token ${{ secrets.FIGMA_PERSONAL_ACCESS_TOKEN}}
- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm i
- run: npm run build
- name: Get changed icons
id: get-changed-icons
uses: ./.github/workflows/get_changed_icons.yml

publish_code_connect:
uses: ./.github/workflows/publish_code_connect.yml
if: always()
secrets: inherit
# publish:
# name: Publish to NPM
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# ref: ${{github.ref_name}}
# - uses: actions/setup-node@v4
# with:
# node-version: 18
# registry-url: "https://registry.npmjs.org"
# - name: Install packages
# run: npm ci
# - name: Compile Typescript files
# run: tsc
# - name: Dry run
# run: npx figma connect publish --dry-run --token ${{ secrets.FIGMA_PERSONAL_ACCESS_TOKEN}}
# - name: Publish
# run: npm publish
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

update_npm_dependencies:
uses: ./.github/workflows/update_dependencies.yml
secrets: inherit
# publish_code_connect:
# uses: ./.github/workflows/publish_code_connect.yml
# if: always()
# secrets: inherit

# update_npm_dependencies:
# uses: ./.github/workflows/update_dependencies.yml
# secrets: inherit

update_flutter:
needs: get_changed_icons
uses: ./.github/workflows/update_zeta_flutter.yml
secrets: inherit
with:
comment: ${{ needs.get_changed_icons.outputs.BODY}}

update_android:
needs: get_changed_icons
uses: ./.github/workflows/update_zds_android.yml
secrets: inherit
with:
comment: ${{ needs.get_changed_icons.outputs.BODY}}
2 changes: 2 additions & 0 deletions .github/workflows/update_zds_android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ on:
secrets:
PAT:
required: true
inputs:
comment:
required: true
type: string

jobs:
publish_android:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/update_zeta_flutter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ on:
secrets:
PAT:
required: true
inputs:
comment:
required: true
type: string

env:
flutter_branch: update-zeta-icons
Expand Down
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,19 @@
* Icon updates 15 Jan 2025, 08:02:26 ([#73](https://github.com/ZebraDevs/zeta-icons/issues/73)) ([2b05346](https://github.com/ZebraDevs/zeta-icons/commit/2b0534695eb19cb5b6d5926ff383d4282770ab20))
* Updated icon validator package ([#74](https://github.com/ZebraDevs/zeta-icons/issues/74)) ([eab0d8c](https://github.com/ZebraDevs/zeta-icons/commit/eab0d8c7fdef686afd040bf6bbbcce053bbc0a09))


### 🔺 Icons added

* **Audio_video:** Google Drive Audio Video (round) ([6f694f5](https://github.com/ZebraDevs/zeta-icons/commit/6f694f522249d7e880dab90458b59cb5f0264fec))
* **Audio_video:** Google Drive Audio Video (sharp) ([6f694f5](https://github.com/ZebraDevs/zeta-icons/commit/6f694f522249d7e880dab90458b59cb5f0264fec))
* **Image:** Help Outline (round) ([6f694f5](https://github.com/ZebraDevs/zeta-icons/commit/6f694f522249d7e880dab90458b59cb5f0264fec))
* **Image:** Help Outline (sharp) ([6f694f5](https://github.com/ZebraDevs/zeta-icons/commit/6f694f522249d7e880dab90458b59cb5f0264fec))
* **Maps:** Mr Worldwide (round) ([6f694f5](https://github.com/ZebraDevs/zeta-icons/commit/6f694f522249d7e880dab90458b59cb5f0264fec))
* **Maps:** Mr Worldwide (sharp) ([6f694f5](https://github.com/ZebraDevs/zeta-icons/commit/6f694f522249d7e880dab90458b59cb5f0264fec))




## [0.9.4](https://github.com/ZebraDevs/zeta-icons/compare/zeta-icons-v0.9.3...zeta-icons-v0.9.4) (2024-12-18)


Expand Down
Loading

0 comments on commit bf47639

Please sign in to comment.