Skip to content

Publish Package

Publish Package #1

Workflow file for this run

# This workflow will run tests using node and then publish a package when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
name: Publish Package
on:
workflow_dispatch:
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: 18.15
registry-url: https://registry.npmjs.org/
- run: npm ci
# Copy LICENSE to adyen-web package
- run: cp LICENSE packages/adyen-salesforce-pwa/
# Build and publish to npm
- run: cd packages/adyen-salesforce-pwa/ && npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
CI: true