diff --git a/.drone.yml b/.drone.yml index cf9e827..ef4f971 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,25 +11,24 @@ steps: image: node:10.15 environment: AUTH0_DOMAIN: - from_secret: AUTH0_DOMAIN + from_secret: auth0_test_domain AUTH0_CLIENT_ID: - from_secret: AUTH0_API_CLIENT_ID + from_secret: auth0_test_client_id AUTH0_CLIENT_SECRET: - from_secret: AUTH0_API_CLIENT_SECRET + from_secret: auth0_test_client_secret AUTH0_EXTENSION_URL: - from_secret: AUTH0_AUTHORIZATION_EXTENSION_URL + from_secret: auth0_test_extension_url commands: - npm install - npm test - name: build + publish - image: node:10.15 - environment: - NPM_TOKEN: - from_secret: NPM_TOKEN + image: node:18.20.3 commands: - npm run build - - echo //registry.npmjs.org/:_authToken=$NPM_TOKEN > .npmrc + - echo "@cyrus:registry=https://us-npm.pkg.dev/cyrus-containers/levitate-npm/" > .npmrc + - echo "//us-npm.pkg.dev/cyrus-containers/levitate-npm/:always-auth=true" >> .npmrc + - npm run artifactregistry-login - npm publish --access public when: branch: diff --git a/README.md b/README.md index 6991d4f..ccbf8cc 100644 --- a/README.md +++ b/README.md @@ -81,4 +81,4 @@ Those logs will appear only when running ava in verbose mode: ```bash env $(cat .env | xargs) node_modules/.bin/ava test/[test-name].spec.js --verbose -``` +``` \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 47108a4..f5d1471 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6106,4 +6106,4 @@ "dev": true } } -} +} \ No newline at end of file diff --git a/package.json b/package.json index e4a9dfd..86396c8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cyrusbio/auth0-authorization", - "version": "1.2.2", + "version": "1.3.0", "description": "Auth0 Authorization Extension API client library", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -24,6 +24,7 @@ "typescript": "3.2.2" }, "scripts": { + "artifactregistry-login": "npx google-artifactregistry-auth", "prebuild": "rm -rf lib", "build": "tsc -p tsconfig.build.json --outDir lib", "build:watch": "tsc -p tsconfig.build.json --outDir lib -w",