-
-
Notifications
You must be signed in to change notification settings - Fork 24
41 lines (34 loc) · 1.08 KB
/
release-dev.yml
File metadata and controls
41 lines (34 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: 'Stencil Sass Dev Release'
on:
workflow_call:
permissions:
contents: read
id-token: write
jobs:
build_stencil_sass:
name: 🏗️ Build Stencil Sass
uses: ./.github/workflows/build.yml
get_dev_version:
name: 🔍 Get Dev Build Version
runs-on: ubuntu-latest
needs: build_stencil_sass
outputs:
dev-version: ${{ steps.generate-dev-version.outputs.DEV_VERSION }}
steps:
- name: 📥 Checkout Code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: ⚙️ Generate Dev Version
id: generate-dev-version
run: |
PKG_JSON_VERSION=$(cat package.json | jq -r '.version')
GIT_HASH=$(git rev-parse --short HEAD)
DEV_VERSION=$PKG_JSON_VERSION-dev.$(date +"%s").$GIT_HASH
echo "DEV_VERSION=$DEV_VERSION" >> $GITHUB_OUTPUT
shell: bash
publish_dev:
name: 🚀 Publish Dev Build
needs: get_dev_version
uses: ./.github/workflows/publish-npm.yml
with:
tag: dev
version: ${{ needs.get_dev_version.outputs.dev-version }}