diff --git a/.github/workflows/foo.yml b/.github/workflows/foo.yml new file mode 100644 index 00000000000..95276866d6c --- /dev/null +++ b/.github/workflows/foo.yml @@ -0,0 +1,24 @@ +on: + push: + branches: [experience-cs] + workflow_dispatch: +permissions: + contents: write + packages: write +jobs: + foo: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + - uses: actions/setup-node@26961cf329f22f6837d5f54c3efd76b480300ace # v4 + - run: | + mkdir -p build + mkdir -p dist + - name: Publish to GitHub Packages + if: github.ref == 'refs/heads/experience-cs' + run: | + RELEASE_VERSION="0.1.0-raspberrypifoundation.$(date +'%Y%m%d%H%M%S')" + npm version --no-git-tag-version $RELEASE_VERSION + npm publish --access public --tag latest + env: + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}