Fast and tiny JavaScript/TypeScript cron parser with timezone support
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

remove manual publish option from the publish workflow

+11 -39
+11 -39
.github/workflows/publish.yml
··· 5 5 branches: [master] 6 6 paths: 7 7 - "package.json" 8 - workflow_dispatch: 9 - inputs: 10 - version: 11 - description: "Version to publish (e.g., 0.1.0)" 12 - required: true 13 - type: string 14 8 15 9 jobs: 16 10 check-version: ··· 27 21 - name: Check if version changed 28 22 id: check 29 23 run: | 30 - if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then 24 + # Get version from current and previous commit 25 + CURRENT_VERSION=$(node -p "require('./package.json').version") 26 + git checkout HEAD^ 27 + PREVIOUS_VERSION=$(node -p "require('./package.json').version") 28 + git checkout - 29 + 30 + if [ "$CURRENT_VERSION" != "$PREVIOUS_VERSION" ]; then 31 + echo "Version changed from $PREVIOUS_VERSION to $CURRENT_VERSION" 31 32 echo "changed=true" >> $GITHUB_OUTPUT 32 33 else 33 - # Get version from current and previous commit 34 - CURRENT_VERSION=$(node -p "require('./package.json').version") 35 - git checkout HEAD^ 36 - PREVIOUS_VERSION=$(node -p "require('./package.json').version") 37 - git checkout - 38 - 39 - if [ "$CURRENT_VERSION" != "$PREVIOUS_VERSION" ]; then 40 - echo "Version changed from $PREVIOUS_VERSION to $CURRENT_VERSION" 41 - echo "changed=true" >> $GITHUB_OUTPUT 42 - else 43 - echo "Version unchanged: $CURRENT_VERSION" 44 - echo "changed=false" >> $GITHUB_OUTPUT 45 - fi 34 + echo "Version unchanged: $CURRENT_VERSION" 35 + echo "changed=false" >> $GITHUB_OUTPUT 46 36 fi 47 37 48 38 - name: Get version 49 39 id: get-version 50 40 run: | 51 - if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then 52 - echo "version=${{ inputs.version }}" >> $GITHUB_OUTPUT 53 - else 54 - echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT 55 - fi 41 + echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT 56 42 57 43 publish-npm: 58 44 name: Publish to NPM ··· 83 69 84 70 - name: Build 85 71 run: pnpm run build 86 - 87 - - name: Update versions (manual trigger only) 88 - if: github.event_name == 'workflow_dispatch' 89 - env: 90 - VERSION: ${{ inputs.version }} 91 - run: | 92 - npm version "$VERSION" --no-git-tag-version 93 - jq --arg v "$VERSION" '.version = $v' jsr.json > jsr.json.tmp 94 - mv jsr.json.tmp jsr.json 95 - git config user.name "github-actions[bot]" 96 - git config user.email "github-actions[bot]@users.noreply.github.com" 97 - git add package.json jsr.json 98 - git commit -m "chore: release v${{ inputs.version }}" 99 - git push origin master 100 72 101 73 - name: Create git tag and release 102 74 run: |