Skip to content

Commit

Permalink
Dev (#21)
Browse files Browse the repository at this point in the history
* update packagejson --add publicConfig

* update CD workflow

* update CD workflow

* create github registry package

* update CD workflow
  • Loading branch information
wojtekKrol authored Jun 30, 2024
1 parent f105c67 commit dd58b1c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,23 +55,6 @@ jobs:
env:
GITHUB_REPOSITORY: ${{ github.repository }}

- name: Insert repository owner as scope into package name
run: |
cp package.json package.json.bak
node <<EOF
const fs = require('fs').promises;
fs.readFile('package.json', 'utf8').then((data) => JSON.parse(data)).then((json) => {
json.name = '@' + process.env.GITHUB_REPOSITORY.split('/')[0] + '/' + json.name;
console.info('Package name changed to %s', json.name);
return fs.writeFile('package.json', JSON.stringify(json, null, 2), 'utf8');
}).catch(error => {
console.error(error);
process.exit(1);
});
EOF
env:
GITHUB_REPOSITORY: ${{ github.repository }}

- name: Publish to GitHub Packages
run: pnpm publish --registry=https://npm.pkg.github.com/ --no-git-checks
env:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zod-to-fields",
"version": "0.1.33",
"version": "0.1.34",
"description": "Turn your Zod schemas into configurable field arrays for easy integration with HTML, React, Vue, and more.",
"main": "lib/cjs/index.js",
"module": "lib/esm/index.js",
Expand Down

0 comments on commit dd58b1c

Please sign in to comment.