intuit / intuit/auto

Github Actions - Error when creating release & Github package

Open
#2,424 1 comment 1 reaction 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
2.5k
Forks
221
PR merge metrics
No merged PRs in 30d

Description

**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` :

```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](https://github.com/intuit/auto/assets/70320232/9f3d31b9-dd9e-4e31-88f9-a718a86dde4f)

**Environment information:**

```txt
node: v18.19.0
npm: 10.2.3
yarn: 1.22.21
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.