77 packages :
88 description : Packages to publish
99 required : true
10- default : ' all'
10+ default : " all"
1111 type : string
1212 source :
1313 # the repository to which to push the release version
1414 # usually a fork of typst/packages (https://github.com/typst/packages/)
1515 # that you have push privileges to
1616 description : Source repository to publish the package
1717 required : true
18- default : ' Myriad-Dreamin /packages'
18+ default : " typst /packages"
1919 type : string
2020 # the path within that repo where the "<name>/<version>" directory should be put
2121 # for the Typst package registry, keep this as is
2222 destination :
2323 description : Destination path to install the package
2424 required : true
25- default : ' packages/preview'
25+ default : " packages/preview"
26+ type : string
27+ # the path within that repo where the "<name>/<version>" directory should be put
28+ # for the Typst package registry, keep this as is
29+ push-to-fork :
30+ description : Push to fork
31+ required : true
32+ default : " Myriad-Dreamin/packages"
2633 type : string
2734 dry-run :
2835 description : Dry run the publish process
2936 required : false
3037 default : false
3138 type : boolean
32- publishing :
33- description : Whether to publish the package
34- required : false
35- default : true
36- type : boolean
3739
3840jobs :
3941 plan :
4244 contents : write
4345 outputs :
4446 val : ${{ steps.plan.outputs.manifest }}
45- publishing : ${{ ( !github.event.pull_request) || inputs.publishing == true }}
47+ publishing : ${{ !github.event.pull_request }}
4648 steps :
4749 - uses : actions/checkout@v4
4850 - name : Set up typship
@@ -58,14 +60,14 @@ jobs:
5860 echo "typship ran successfully"
5961 cat plan-typship-manifest.json
6062 echo "manifest=$(jq -c "." plan-typship-manifest.json)" >> "$GITHUB_OUTPUT"
61- - name : ' Upload dist -manifest.json'
63+ - name : " Upload typship -manifest.json"
6264 uses : actions/upload-artifact@v4
6365 with :
6466 name : artifacts-plan-typship-manifest
6567 path : plan-typship-manifest.json
6668
6769 publish :
68- name : publish (${{ join( matrix.targets, ', ') }})
70+ name : publish (${{ matrix.package.name }}:${{ matrix.package.version }})
6971 # Let the initial task tell us to not run (currently very blunt)
7072 needs :
7173 - plan
@@ -104,7 +106,7 @@ jobs:
104106 # The token to use to pull the repository, needs write access to the repository.
105107 token : ${{ secrets.REGISTRY_TOKEN }}
106108 # Relative path under $GITHUB_WORKSPACE to place the repository
107- path : ' typst-packages'
109+ path : " typst-packages"
108110 - name : Detect existing package
109111 id : detect-existing-package
110112 run : |
@@ -131,7 +133,7 @@ jobs:
131133 with :
132134 token : ${{ secrets.REGISTRY_TOKEN }}
133135 path : typst-packages
134- title : ' @preview/{{ matrix.package.name }} {{ matrix.package.version }}'
136+ title : " @preview/$ {{ matrix.package.name }}:$ {{ matrix.package.version }}"
135137 body : |
136138 I am submitting
137139 * [ ] a new package
@@ -149,7 +151,8 @@ jobs:
149151 * [x] [`exclude`d](https://github.com/typst/packages/blob/main/docs/tips.md#what-to-commit-what-to-exclude) PDFs or README images, if any, but not the LICENSE
150152
151153 * [x] ensured that my package is licensed such that users can use and distribute the contents of its template directory without restriction, after modifying them through normal use.
152- commit-message : ' build: bump @preview/{{ matrix.package.name }} to {{ matrix.package.version }}'
153- branch : preview/{{ matrix.package.name }}/v{{ matrix.package.version }}
154- base : ' main'
154+ commit-message : " build: bump @preview/${{ matrix.package.name }} to ${{ matrix.package.version }}"
155+ branch : preview/${{ matrix.package.name }}/v${{ matrix.package.version }}
156+ push-to-fork : ${{ inputs.push-to-fork }}
157+ base : " main"
155158 draft : false
0 commit comments