Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a496dc4865 | ||
|
|
677aabfa30 | ||
|
|
8ca8c57793 | ||
|
|
3f391ff584 | ||
|
|
ef453eadd0 |
@@ -17,9 +17,7 @@ jobs:
|
||||
|
||||
- uses: https://github.com/actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: pnpm
|
||||
registry-url: https://dev.pivoine.art/api/packages/valknar/npm/
|
||||
node-version: 22
|
||||
|
||||
- run: pnpm install --frozen-lockfile
|
||||
|
||||
@@ -27,12 +25,17 @@ jobs:
|
||||
- run: pnpm run typecheck
|
||||
- run: pnpm run format:check
|
||||
- run: pnpm run test
|
||||
- run: pnpm run build
|
||||
|
||||
- name: Set package version from the tag
|
||||
run: npm pkg set version="${GITHUB_REF_NAME#v}"
|
||||
|
||||
# Scoped to this one registry host+path (via publishConfig.registry in package.json) rather
|
||||
# than actions/setup-node's registry-url, which would set it as the *default* registry for
|
||||
# every install - breaking `pnpm install` for this project's own (unscoped, public) deps.
|
||||
- name: Configure registry auth for publish
|
||||
run: pnpm config set "//dev.pivoine.art/api/packages/valknar/npm/:_authToken" "$PACKAGE_TOKEN"
|
||||
env:
|
||||
PACKAGE_TOKEN: ${{ secrets.PACKAGE_TOKEN }}
|
||||
|
||||
- name: Publish to Gitea npm registry
|
||||
run: pnpm publish --no-git-checks
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.PACKAGE_TOKEN }}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
# dependencies
|
||||
/node_modules
|
||||
/.pnpm-store
|
||||
/.pnp
|
||||
.pnp.*
|
||||
.yarn/*
|
||||
|
||||
@@ -1,2 +1,7 @@
|
||||
# Machine-generated - pnpm owns this file's formatting, not prettier.
|
||||
pnpm-lock.yaml
|
||||
|
||||
# pnpm's local content-addressable store - on some runners this ends up inside the workspace
|
||||
# instead of the global cache location; its blobs aren't source files (some happen to parse as
|
||||
# JS/TS-like content, which crashes prettier's parser rather than just wasting time on them).
|
||||
.pnpm-store/
|
||||
|
||||
Reference in New Issue
Block a user