Skip to content

How to use shipit to create a github release but not deploy to npm? #2497

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Tasemu opened this issue Mar 25, 2025 · 0 comments
Open

How to use shipit to create a github release but not deploy to npm? #2497

Tasemu opened this issue Mar 25, 2025 · 0 comments

Comments

@Tasemu
Copy link

Tasemu commented Mar 25, 2025

Hi there, i have a workflow which I want to use for handle my versioning and changelog for my personal project. I workflow fails every time as it appears to be trying to deploy to NPM, this isn't a package so i was hoping there was a way to achieve this just on the google releases side and not the npm. So i can make a PR with the patch label, it will generate the changelog and the new version when i merge it into main?

name: Release

on:
  push:
    branches: [main]

jobs:
  release:
    runs-on: ubuntu-latest
    if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
    steps:
      - name: Checkout code
        uses: actions/checkout@v4

      - name: Prepare repository
        run: git fetch --unshallow --tags  # Only needed if you require full git history/tags

      - name: Use Node.js 18.x
        uses: actions/setup-node@v3
        with:
          node-version: 18.x
          # Remove cache setting if you don't need npm/yarn caching

      - name: git-setup
        run: |
          git --version
          git config user.name "GitHub Actions Bot"
          git config user.email "<>"

      - name: Create Release
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}  # Only needed for GitHub releases
        run: npx auto shipit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant