Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
chore(workflows): fix publishing (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
fuxingloh authored Oct 8, 2023
1 parent f3de787 commit cd0ab10
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ env:

jobs:
build:
name: Build
name: Build [packages]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
Expand All @@ -33,7 +33,7 @@ jobs:

- run: pnpm install --frozen-lockfile

- run: pnpm build
- run: pnpm turbo run build --filter='./packages/*'

lint_prettier:
name: Lint [prettier]
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ jobs:
runs-on: ubuntu-latest
needs: Version
environment: NPM Publishing
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0

Expand All @@ -46,14 +43,13 @@ jobs:

- run: pnpm -r exec npm version ${{ needs.version.outputs.result }} --git-tag-version=false

- run: pnpm build
- run: pnpm turbo run build --filter='./packages/*'

- run: npm config set "//registry.npmjs.org/:_authToken" "\${NPM_AUTH_TOKEN}" --location=project

- run: pnpm -r publish --access public --tag latest --no-git-checks
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
NPM_CONFIG_PROVENANCE: true

- run: npm config delete "//registry.npmjs.org/:_authToken" --location=project
if: always()
2 changes: 1 addition & 1 deletion examples/levain-graphql-examples/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@levain-examples/levain-graphql-examples",
"version": "1.0.0",
"private": false,
"private": true,
"description": "Example codes for creating your own services with Levain GraphQL APIs.",
"license": "MIT",
"main": "src/app.ts",
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@
"name": "@levain-examples/project",
"private": true,
"scripts": {
"build": "turbo run build",
"clean": "turbo run clean",
"format": "prettier --write .",
"lint": "turbo run lint -- --fix",
"prepare": "husky install",
"test": "turbo run test",
"write": "turbo run write"
},
"lint-staged": {
Expand Down

1 comment on commit cd0ab10

@vercel
Copy link

@vercel vercel bot commented on cd0ab10 Oct 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.