From c37ca781db94d20de6674d2c882d13199e5c402c Mon Sep 17 00:00:00 2001 From: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com> Date: Mon, 5 Feb 2024 11:18:15 -0600 Subject: [PATCH] Create localization-publish-dev.yml --- .../workflows/localization-publish-dev.yml | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/localization-publish-dev.yml diff --git a/.github/workflows/localization-publish-dev.yml b/.github/workflows/localization-publish-dev.yml new file mode 100644 index 0000000..73e719d --- /dev/null +++ b/.github/workflows/localization-publish-dev.yml @@ -0,0 +1,36 @@ +name: Continuous Delivery + +on: + push: + branches: + - main + paths: + - 'packages/localizer/*' + +jobs: + Publish: + name: Publishing Dev + runs-on: ubuntu-latest + + steps: + - name: Check out Git repository + uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3 + + - name: Set up Node.js + uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3 + with: + node-version: 18 + registry-url: 'https://registry.npmjs.org' + + - name: Install Node.js dependencies + run: yarn + + - name: Build + run: cd packages/localizer && npm run build + + - name: Publish to npm + run: | + npm version premajor --preid "dev.$(git rev-parse --verify --short HEAD)" --git-tag-version=false + npm publish --tag dev + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}