chore(ci): enable npm package provenance (#27263)

See https://github.blog/2023-04-19-introducing-npm-package-provenance/
This commit is contained in:
Lars Mikkelsen
2023-04-24 07:04:10 -06:00
committed by GitHub
parent ad02058ef3
commit d425e6d4f3
13 changed files with 19 additions and 10 deletions

View File

@@ -22,6 +22,9 @@ runs:
- uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Install latest npm
run: npm install -g npm@latest
shell: bash
- name: Install Dependencies
run: lerna bootstrap --include-dependencies --scope ${{ inputs.scope }} --ignore-scripts -- --legacy-peer-deps
shell: bash
@@ -41,6 +44,6 @@ runs:
env:
NPM_TOKEN: ${{ inputs.token }}
- name: Publish to NPM
run: npm publish ${{ inputs.folder }} --tag ${{ inputs.tag }}
run: npm publish ${{ inputs.folder }} --tag ${{ inputs.tag }} --provenance
shell: bash
working-directory: ${{ inputs.working-directory }}

View File

@@ -24,6 +24,8 @@ jobs:
release-ionic:
needs: [create-dev-hash]
permissions:
id-token: write
uses: ./.github/workflows/release-ionic.yml
with:
tag: dev

View File

@@ -29,6 +29,8 @@ jobs:
release-ionic:
needs: [create-nightly-hash]
permissions:
id-token: write
uses: ./.github/workflows/release-ionic.yml
with:
tag: nightly

View File

@@ -36,6 +36,8 @@ on:
jobs:
release-ionic:
permissions:
id-token: write
uses: ./.github/workflows/release-ionic.yml
with:
tag: ${{ inputs.tag }}

View File

@@ -17,7 +17,7 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/ionic-team/ionic.git"
"url": "git+https://github.com/ionic-team/ionic-framework.git"
},
"bugs": {
"url": "https://github.com/ionic-team/ionic/issues"

View File

@@ -5,7 +5,7 @@
"keywords": [],
"repository": {
"type": "git",
"url": "https://github.com/ionic-team/ionic.git"
"url": "git+https://github.com/ionic-team/ionic-framework.git"
},
"license": "MIT",
"main": "umd/index.js",

View File

@@ -99,7 +99,7 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/ionic-team/ionic.git"
"url": "git+https://github.com/ionic-team/ionic-framework.git"
},
"bugs": {
"url": "https://github.com/ionic-team/ionic/issues"

View File

@@ -12,7 +12,7 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/ionic-team/ionic-docs.git"
"url": "git+https://github.com/ionic-team/ionic-framework.git"
},
"bugs": {
"url": "https://github.com/ionic-team/ionic-docs/issues"

View File

@@ -14,7 +14,7 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/ionic-team/ionic.git"
"url": "git+https://github.com/ionic-team/ionic-framework.git"
},
"bugs": {
"url": "https://github.com/ionic-team/ionic/issues"

View File

@@ -17,7 +17,7 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/ionic-team/ionic.git"
"url": "git+https://github.com/ionic-team/ionic-framework.git"
},
"scripts": {
"build": "npm run clean && npm run compile",

View File

@@ -17,7 +17,7 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/ionic-team/ionic.git"
"url": "git+https://github.com/ionic-team/ionic-framework.git"
},
"scripts": {
"build": "npm run clean && npm run copy && npm run compile",

View File

@@ -22,7 +22,7 @@
],
"repository": {
"type": "git",
"url": "git+https://github.com/ionic-team/ionic.git"
"url": "git+https://github.com/ionic-team/ionic-framework.git"
},
"keywords": [
"ionic",

View File

@@ -27,7 +27,7 @@
],
"repository": {
"type": "git",
"url": "git+https://github.com/ionic-team/ionic.git"
"url": "git+https://github.com/ionic-team/ionic-framework.git"
},
"keywords": [
"ionic",