Skip to content

Af/veg 662 take 2 #81

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 17 commits into
base: master
Choose a base branch
from
24 changes: 24 additions & 0 deletions .github/workflows/publish_npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: publish

on:
push:
branches: af/veg-662-take-2

jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: zendesk/checkout@v2
- uses: zendesk/setup-node@v2.1.2
with:
node-version: '12.x'
- name: publish_on_merge
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
git config user.name github-actions
git config user.email github-actions@github.com
ls
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> .npmrc
./scripts/release.sh

8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# 1.0.0-beta.9 (2021-11-09)

**Note:** Version bump only for package zcli-monorepo





# [1.0.0-beta.8](https://github.com/zendesk/zcli/compare/v1.0.0-beta.7...v1.0.0-beta.8) (2021-03-13)

**Note:** Version bump only for package zcli-monorepo
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
"--no-lockfile"
],
"useWorkspaces": true,
"version": "1.0.0-beta.8"
"version": "1.0.0-beta.9"
}
8 changes: 8 additions & 0 deletions packages/zcli-apps/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# 1.0.0-beta.9 (2021-11-09)

**Note:** Version bump only for package @zendesk/zcli-apps





# [1.0.0-beta.8](https://github.com/zendesk/zcli/compare/v1.0.0-beta.7...v1.0.0-beta.8) (2021-03-13)

**Note:** Version bump only for package @zendesk/zcli-apps
Expand Down
2 changes: 1 addition & 1 deletion packages/zcli-apps/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@zendesk/zcli-apps",
"description": "zcli apps commands live here",
"version": "1.0.0-beta.8",
"version": "1.0.0-beta.9",
"author": "@vegemite",
"npmRegistry": "https://registry.npmjs.org",
"publishConfig": {
Expand Down
3 changes: 3 additions & 0 deletions packages/zcli-apps/src/commands/apps/new.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export default class New extends Command {
if (err) {
reject(err)
}
// @ts-ignore
resolve()
})
})
Expand All @@ -59,6 +60,7 @@ export default class New extends Command {
fsExtra.copy(
path.join(process.cwd(), '/', 'app_scaffolds-master/packages/', flagScaffold),
path.join(process.cwd(), directoryName),
// @ts-ignore
{ overwrite: true, errorOnExist: true }, async (err: FsExtraError) => {
await cleanDirectory(this.unzippedScaffoldPath)
if (err) {
Expand All @@ -67,6 +69,7 @@ export default class New extends Command {
}
reject(err)
}
// @ts-ignore
resolve()
}
)
Expand Down
8 changes: 8 additions & 0 deletions packages/zcli-core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# 1.0.0-beta.9 (2021-11-09)

**Note:** Version bump only for package @zendesk/zcli-core





# [1.0.0-beta.7](https://github.com/zendesk/zcli/compare/v1.0.0-beta.6...v1.0.0-beta.7) (2021-03-11)

**Note:** Version bump only for package @zendesk/zcli-core
Expand Down
2 changes: 1 addition & 1 deletion packages/zcli-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zendesk/zcli-core",
"version": "1.0.0-beta.7",
"version": "1.0.0-beta.9",
"description": "ZCLI core libraries and services",
"main": "src/index.ts",
"npmRegistry": "https://registry.npmjs.org",
Expand Down
8 changes: 8 additions & 0 deletions packages/zcli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# 1.0.0-beta.9 (2021-11-09)

**Note:** Version bump only for package @zendesk/zcli





# [1.0.0-beta.8](https://github.com/zendesk/zcli/compare/v1.0.0-beta.7...v1.0.0-beta.8) (2021-03-13)

**Note:** Version bump only for package @zendesk/zcli
Expand Down
2 changes: 1 addition & 1 deletion packages/zcli/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/zcli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@zendesk/zcli",
"description": "Zendesk cli is a single command line tool for all your zendesk needs",
"version": "1.0.0-beta.8",
"version": "1.0.0-beta.9",
"author": "@vegemite",
"npmRegistry": "https://registry.npmjs.org",
"publishConfig": {
Expand All @@ -21,8 +21,8 @@
"@oclif/plugin-not-found": "^1.2.4",
"@oclif/plugin-update": "1.5.0",
"@oclif/plugin-warn-if-update-available": "1.7.0",
"@zendesk/zcli-apps": "^1.0.0-beta.8",
"@zendesk/zcli-core": "^1.0.0-beta.7",
"@zendesk/zcli-apps": "^1.0.0-beta.9",
"@zendesk/zcli-core": "^1.0.0-beta.9",
"cli-ux": "^5.6.2",
"tslib": "^1.14.1"
},
Expand Down
6 changes: 3 additions & 3 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
set -e

echo 'πŸ”„ Generate tag, update docs and changelog'
yarn install
yarn install --frozen-lockfile

./scripts/generate_dev_docs.sh
# ./scripts/generate_dev_docs.sh

# Remove beta once we are out of it
npx lerna publish --conventional-commits --yes --preid 'beta'
npx lerna publish --conventional-commits --yes --preid 'beta' --no-verify-access
echo "βœ… Done"
exit 0