mirror of
https://github.com/ionic-team/ionicons.git
synced 2026-11-30 16:48:16 +01:00
44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
name: 'Dev Release'
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
create-dev-hash:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
dev-hash: ${{ steps.create-dev-hash.outputs.DEV_HASH }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install Dependencies
|
|
run: npm ci --no-package-lock
|
|
shell: bash
|
|
- id: create-dev-hash
|
|
name: Create Dev Hash
|
|
run: |
|
|
echo "DEV_HASH=$(node ./scripts/bump-version.js)-dev.1$(date +%s).1$(git log -1 --format=%H | cut -c 1-7)" >> $GITHUB_OUTPUT
|
|
shell: bash
|
|
|
|
release-ionicons:
|
|
runs-on: ubuntu-latest
|
|
needs: [create-dev-hash]
|
|
permissions:
|
|
id-token: write
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Publish to NPM
|
|
uses: ./.github/workflows/actions/publish-npm
|
|
with:
|
|
tag: dev
|
|
version: ${{ needs.create-dev-hash.outputs.dev-hash }}
|
|
working-directory: './'
|
|
createRelease: 'false'
|
|
|
|
get-build:
|
|
name: Get your dev build!
|
|
runs-on: ubuntu-latest
|
|
needs: [create-dev-hash, release-ionicons]
|
|
steps:
|
|
- run: echo ${{ needs.create-dev-hash.outputs.dev-hash }}
|