Skip to content

Commit

Permalink
Deployment updates
Browse files Browse the repository at this point in the history
  • Loading branch information
zguig52 committed Mar 15, 2024
1 parent e6325f0 commit 7a5fa6f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Node.js Package
name: Build and Publish Package to npmjs

on:
release:
Expand All @@ -14,19 +14,23 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: '18.x'
- run: npm ci

publish-npm:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install -g npm
- run: npm ci
- run: npm publish
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPMJS}}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"icon": "extension",
"license": "MIT",
"version": "1.0.0",
"author": "Euryece Telecom",
"keywords": [
"directus",
"directus-extension",
Expand Down Expand Up @@ -41,6 +42,7 @@
"type": "git",
"url": "git+https://github.com/euryecetelecom/directus-extension-operation-download-store-file.git"
},
"homepage": "https://github.com/euryecetelecom/directus-extension-operation-download-store-file",
"release-it": {
"github": {
"release": true
Expand Down

0 comments on commit 7a5fa6f

Please sign in to comment.