Merge pull request #120 from FishingCactus/fix/memory_singleton #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This action automatically publishes the package on GitHub Packages when something is pushed on develop | |
name: Publish on GitHub Packages | |
on: | |
push: | |
branches: | |
- develop | |
# This adds a button in the Actions tab to manually execute the action | |
workflow_dispatch: | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
contents: read | |
steps: | |
# This checks out the repository to be accessible for the workflow - https://github.com/actions/checkout | |
- uses: actions/checkout@v4 | |
# This is used to configure authentification for npm - https://github.com/actions/setup-node | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
registry-url: https://npm.pkg.github.com/ | |
# This is the command that will publish the package on the registry specified in package.json or .npmrc | |
# GITHUB_TOKEN allows us to authenticate without any personal access token | |
- run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} |