Skip to content

fix(CI/CD):

fix(CI/CD): #9

Workflow file for this run

# name: "🚀 release"
# on:
# push:
# branches:
# - master
# jobs:
# release:
# name: 🚀 release
# runs-on: ubuntu-latest
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# steps:
# - name: 📚 checkout
# uses: actions/checkout@v2.1.1
# - name: 🟢 node
# uses: actions/setup-node@v1.4.2
# with:
# node-version: 12
# registry-url: https://registry.npmjs.org
# - name: version release
# uses: rymndhng/release-on-push-action@master
# with:
# bump_version_scheme: minor
# use_github_release_notes: true
# - name: 🚀 publish
# run: npm publish --access public
# working-directory: my-package
# env:
# NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
name: Publish
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write # allow GITHUB_TOKEN to publish packages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 14
- name: Install dependencies
run: npm install
# - name: Create GitHub Release
# id: create_release
# uses: actions/create-release@v1
# with:
# folder: my-package
# tag_name: v1.0.0
# release_name: Release ${{ github.ref }}
# draft: false
# prerelease: false
- uses: JS-DevTools/npm-publish@v3
with:
working-directory: dist/flag-pipe
token: ${{ secrets.GITHUB_TOKEN }}
registry: "https://npm.pkg.github.com"