@process.co/element-types 0.0.1-docs → 0.0.1-docs-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/.github/README.md
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# Internal Developer Notes: Element Types
|
|
2
|
-
|
|
3
|
-
This package contains shared types and utilities for Process.co elements.
|
|
4
|
-
|
|
5
|
-
- **Source:** Monorepo: [`process-co/proc-app/process-co/element-types`](https://github.com/process-co/proc-app/tree/main/process-co/element-types)
|
|
6
|
-
- **Publish Repo:** `process-co/npm-element-types`
|
|
7
|
-
- **Published to:** [npm](https://www.npmjs.com/package/@process.co/element-types)
|
|
8
|
-
- **Sync workflow:** See [`.github/workflows/sync-element-types.yml`](https://github.com/process-co/proc-app/blob/main/.github/workflows/sync%20-%20element-types.yml)
|
|
9
|
-
|
|
10
|
-
> [!IMPORTANT]
|
|
11
|
-
> CHANGES HERE WILL GET OVERWRITTEN
|
|
12
|
-
> The JS code in this repo is published from the proc-app mono repo located at https://github.com/process-co/proc-app/tree/main/process-co/element-types, the publish process bundles the specific parts of our (monorepo) internal libararies needed to run the element validataion actions
|
|
13
|
-
|
|
14
|
-
> [!WARNING]
|
|
15
|
-
> NOTHING IS MANAGED IN THIS REPO
|
|
16
|
-
> this repo is only publishing to break out code that is part of a mono repo
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
## Contribution
|
|
20
|
-
All changes should be made in the [`https://github.com/process-co/proc-app/process-co/element-types`](https://ghttps://github.com/process-co/proc-app/tree/main/process-co/element-types)
|
|
21
|
-
|
|
22
|
-
Contact @process-dev for questions.
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
name: Publish Element Types
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
release:
|
|
5
|
-
types: [published]
|
|
6
|
-
workflow_dispatch:
|
|
7
|
-
inputs:
|
|
8
|
-
registry:
|
|
9
|
-
description: 'NPM Registry URL'
|
|
10
|
-
required: false
|
|
11
|
-
type: string
|
|
12
|
-
default: 'https://registry.npmjs.org'
|
|
13
|
-
|
|
14
|
-
jobs:
|
|
15
|
-
publish:
|
|
16
|
-
runs-on: ubuntu-latest
|
|
17
|
-
|
|
18
|
-
steps:
|
|
19
|
-
- name: Checkout repository
|
|
20
|
-
uses: actions/checkout@v3
|
|
21
|
-
with:
|
|
22
|
-
fetch-depth: 0
|
|
23
|
-
|
|
24
|
-
- name: Setup Node.js
|
|
25
|
-
uses: actions/setup-node@v3
|
|
26
|
-
with:
|
|
27
|
-
node-version: 18
|
|
28
|
-
registry-url: ${{ github.event.inputs.registry || 'https://registry.npmjs.org' }}
|
|
29
|
-
|
|
30
|
-
- name: Install pnpm
|
|
31
|
-
uses: pnpm/action-setup@v2
|
|
32
|
-
with:
|
|
33
|
-
version: 10
|
|
34
|
-
|
|
35
|
-
- name: Install dependencies
|
|
36
|
-
run: pnpm install --no-frozen-lockfile
|
|
37
|
-
|
|
38
|
-
- name: Get version from tag
|
|
39
|
-
id: get_version
|
|
40
|
-
run: |
|
|
41
|
-
if [[ "${{ github.event_name }}" == "release" ]]; then
|
|
42
|
-
VERSION=${GITHUB_REF#refs/tags/}
|
|
43
|
-
VERSION=${VERSION#v}
|
|
44
|
-
else
|
|
45
|
-
VERSION=$(node -p "require('./package.json').version")
|
|
46
|
-
fi
|
|
47
|
-
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
|
|
48
|
-
echo "Using version: $VERSION"
|
|
49
|
-
|
|
50
|
-
- name: Update version in package.json
|
|
51
|
-
run: |
|
|
52
|
-
sed -i 's/"version": "[^"]*"/"version": "${{ steps.get_version.outputs.VERSION }}"/' package.json
|
|
53
|
-
REGISTRY="${{ github.event.inputs.registry || 'https://registry.npmjs.org' }}"
|
|
54
|
-
jq --arg reg "$REGISTRY" '.publishConfig.registry = $reg | .registry = $reg' package.json > package.json.tmp && mv package.json.tmp package.json
|
|
55
|
-
jq '.publishConfig.access = "public"' package.json > package.json.tmp && mv package.json.tmp package.json
|
|
56
|
-
|
|
57
|
-
- name: Verify package structure
|
|
58
|
-
run: |
|
|
59
|
-
echo "Checking package structure..."
|
|
60
|
-
[ -d "dist" ] || (echo "Error: dist directory missing!" && exit 1)
|
|
61
|
-
[ -f "dist/index.js" ] || (echo "Error: dist/index.js missing!" && exit 1)
|
|
62
|
-
[ -f "dist/index.d.ts" ] || (echo "Error: dist/index.d.ts missing!" && exit 1)
|
|
63
|
-
echo "dist/index.js and dist/index.d.ts found."
|
|
64
|
-
echo "Final package.json:"
|
|
65
|
-
cat package.json
|
|
66
|
-
|
|
67
|
-
- name: Publish to npm
|
|
68
|
-
run: pnpm publish --access=public --no-git-checks
|
|
69
|
-
env:
|
|
70
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
71
|
-
NPM_REGISTRY: ${{ github.event.inputs.registry || 'https://registry.npmjs.org' }}
|