Skip to content

Update cli to use settings.json to store user data (#10) #28

Update cli to use settings.json to store user data (#10)

Update cli to use settings.json to store user data (#10) #28

Workflow file for this run

name: Dev Release
on:
push:
branches:
- main
pull_request:
branches:
- '**'
env:
draft: false
channel: dev
jobs:
dev-release:
permissions: write-all
name: Dev Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: '22.8.0'
- name: Get package version
id: package-version
uses: martinbeentjes/[email protected]
- name: Install dependencies
run: npm install
- name: Build files
run: npm run build
- name: Build tarballs
run: npm run pack
- name: Get commit hash
id: short-sha
run: echo "SHORT_SHA=$(echo $GITHUB_SHA | cut -c1-7)" >> $GITHUB_ENV
- name: Create release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.channel }}/v${{ steps.package-version.outputs.current-version }}-${{ env.SHORT_SHA }}
draft: ${{ env.draft }}
files: ./dist/*.tar.gz
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}