Skip to content
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

Github Actions - Error when creating release & Github package #2424

Open
NeekoDev opened this issue Feb 16, 2024 · 1 comment
Open

Github Actions - Error when creating release & Github package #2424

NeekoDev opened this issue Feb 16, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@NeekoDev
Copy link

Describe the bug

Hello, I'm trying to use auto to create tag, release and publish package on Github with Github actions.

To Reproduce

Following this guide : https://intuit.github.io/auto/docs/build-platforms/github-actions

The release.yml :

name: Release

on: [push]

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

      - name: Prepare repository
        run: git fetch --unshallow --tags

      - name: Use Node.js 18.x
        uses: actions/setup-node@v4
        with:
          node-version: 18.x
          registry-url: "https://npm.pkg.github.com"
          scope: "@neekodev"

      - name: Cache node modules
        uses: actions/cache@v1
        with:
          path: node_modules
          key: yarn-deps-${{ hashFiles('yarn.lock') }}
          restore-keys: |
            yarn-deps-${{ hashFiles('yarn.lock') }}

      - name: Create Release
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
        run: |
          yarn install --frozen-lockfile
          yarn build
          npx auto shipit

Expected behavior

Create tag, release and publish package with Github action.

Screenshots

Capture d'écran 2024-02-16 101856

Environment information:

  node: v18.19.0
  npm: 10.2.3
  yarn: 1.22.21
@NeekoDev NeekoDev added the bug Something isn't working label Feb 16, 2024
@tlkiong
Copy link

tlkiong commented Feb 23, 2024

@NeekoDev Check your git tags. remove v0.1.0?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants