Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/release-production-plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ jobs:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/contentstack-external-migrate/package.json
tag: alpha
access: public

- name: Create Production Release
id: create_release
Expand Down
2 changes: 1 addition & 1 deletion packages/contentstack-external-migrate/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@contentstack/cli-external-migrate",
"version": "1.0.0-alpha.1",
"version": "1.0.0-alpha.2",
"description": "Migrate from external source to Contentstack",
"author": "Contentstack",
"license": "MIT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ export default class MigrateCreate extends Command {

// Resolve the Contentful management token (shared) for live-API discovery.
let managementToken =
flags['management-token'] ?? process.env.CONTENTFUL_MANAGEMENT_TOKEN ?? readContentfulCliToken();
flags['source-token'] ?? process.env.CONTENTFUL_MANAGEMENT_TOKEN ?? readContentfulCliToken();
if (!managementToken) {
managementToken = await cliux.prompt(
'Contentful management token (not found in --management-token, CONTENTFUL_MANAGEMENT_TOKEN, or contentful login)',
'Source token (not found in --source-token, CONTENTFUL_MANAGEMENT_TOKEN, or source login)',
);
}

Expand Down Expand Up @@ -703,7 +703,7 @@ async function fetchContentfulSpaceName(spaceId?: string, token?: string): Promi

/**
* Reuse the CMA token saved by `contentful login` (~/.contentfulrc.json), so a
* logged-in user need not pass --management-token. Returns undefined if absent.
* logged-in user need not pass --source-token. Returns undefined if absent.
*/
function readContentfulCliToken(): string | undefined {
try {
Expand Down
Loading