Github Actions - Error when creating release & Github package
Opened this issue · 1 comments
NeekoDev commented
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
Environment information:
node: v18.19.0
npm: 10.2.3
yarn: 1.22.21